Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
8af2aebb
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8af2aebb
编写于
1月 31, 2023
作者:
C
congqixia
提交者:
GitHub
1月 31, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix msg channel prefix config priority for backward compatibility (#21871)
Signed-off-by:
N
Congqi Xia
<
congqi.xia@zilliz.com
>
上级
aa84124d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
33 addition
and
33 deletion
+33
-33
internal/util/paramtable/component_param.go
internal/util/paramtable/component_param.go
+33
-33
未找到文件。
internal/util/paramtable/component_param.go
浏览文件 @
8af2aebb
...
...
@@ -210,9 +210,9 @@ type commonConfig struct {
func
(
p
*
commonConfig
)
init
(
base
*
BaseTable
)
{
// must init cluster prefix first
p
.
ClusterPrefix
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.cluster"
,
Key
:
"
msgChannel
.chanNamePrefix.cluster"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.cluster"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.cluster"
},
PanicIfEmpty
:
true
,
}
p
.
ClusterPrefix
.
Init
(
base
.
mgr
)
...
...
@@ -221,9 +221,9 @@ func (p *commonConfig) init(base *BaseTable) {
return
strings
.
Join
([]
string
{
p
.
ClusterPrefix
.
GetValue
(),
prefix
},
"-"
)
}
p
.
ProxySubName
=
ParamItem
{
Key
:
"
common
.subNamePrefix.proxySubNamePrefix"
,
Key
:
"
msgChannel
.subNamePrefix.proxySubNamePrefix"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.subNamePrefix.proxySubNamePrefix"
},
FallbackKeys
:
[]
string
{
"
common
.subNamePrefix.proxySubNamePrefix"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
...
...
@@ -231,27 +231,27 @@ func (p *commonConfig) init(base *BaseTable) {
// --- rootcoord ---
p
.
RootCoordTimeTick
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.rootCoordTimeTick"
,
Key
:
"
msgChannel
.chanNamePrefix.rootCoordTimeTick"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.rootCoordTimeTick"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.rootCoordTimeTick"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
RootCoordTimeTick
.
Init
(
base
.
mgr
)
p
.
RootCoordStatistics
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.rootCoordStatistics"
,
Key
:
"
msgChannel
.chanNamePrefix.rootCoordStatistics"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.rootCoordStatistics"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.rootCoordStatistics"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
RootCoordStatistics
.
Init
(
base
.
mgr
)
p
.
RootCoordDml
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.rootCoordDml"
,
Key
:
"
msgChannel
.chanNamePrefix.rootCoordDml"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.rootCoordDml"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.rootCoordDml"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
Doc
:
"It is not refreshable currently"
,
...
...
@@ -259,9 +259,9 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
RootCoordDml
.
Init
(
base
.
mgr
)
p
.
RootCoordDelta
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.rootCoordDelta"
,
Key
:
"
msgChannel
.chanNamePrefix.rootCoordDelta"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.rootCoordDelta"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.rootCoordDelta"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
Doc
:
"It is not refreshable currently"
,
...
...
@@ -269,9 +269,9 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
RootCoordDelta
.
Init
(
base
.
mgr
)
p
.
RootCoordSubName
=
ParamItem
{
Key
:
"
common
.subNamePrefix.rootCoordSubNamePrefix"
,
Key
:
"
msgChannel
.subNamePrefix.rootCoordSubNamePrefix"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.subNamePrefix.rootCoordSubNamePrefix"
},
FallbackKeys
:
[]
string
{
"
common
.subNamePrefix.rootCoordSubNamePrefix"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
Doc
:
"It is deprecated"
,
...
...
@@ -279,9 +279,9 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
RootCoordSubName
.
Init
(
base
.
mgr
)
p
.
QueryCoordSearch
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.search"
,
Key
:
"
msgChannel
.chanNamePrefix.search"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.search"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.search"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
Doc
:
"It is deprecated"
,
...
...
@@ -289,9 +289,9 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
QueryCoordSearch
.
Init
(
base
.
mgr
)
p
.
QueryCoordSearchResult
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.searchResult"
,
Key
:
"
msgChannel
.chanNamePrefix.searchResult"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.searchResult"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.searchResult"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
Doc
:
"It is deprecated"
,
...
...
@@ -299,61 +299,61 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
QueryCoordSearchResult
.
Init
(
base
.
mgr
)
p
.
QueryCoordTimeTick
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.queryTimeTick"
,
Key
:
"
msgChannel
.chanNamePrefix.queryTimeTick"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.queryTimeTick"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.queryTimeTick"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
QueryCoordTimeTick
.
Init
(
base
.
mgr
)
p
.
QueryNodeSubName
=
ParamItem
{
Key
:
"
common
.subNamePrefix.queryNodeSubNamePrefix"
,
Key
:
"
msgChannel
.subNamePrefix.queryNodeSubNamePrefix"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.subNamePrefix.queryNodeSubNamePrefix"
},
FallbackKeys
:
[]
string
{
"
common
.subNamePrefix.queryNodeSubNamePrefix"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
QueryNodeSubName
.
Init
(
base
.
mgr
)
p
.
DataCoordStatistic
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.dataCoordStatistic"
,
Key
:
"
msgChannel
.chanNamePrefix.dataCoordStatistic"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.dataCoordStatistic"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.dataCoordStatistic"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
DataCoordStatistic
.
Init
(
base
.
mgr
)
p
.
DataCoordTimeTick
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.dataCoordTimeTick"
,
Key
:
"
msgChannel
.chanNamePrefix.dataCoordTimeTick"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.dataCoordTimeTick"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.dataCoordTimeTick"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
DataCoordTimeTick
.
Init
(
base
.
mgr
)
p
.
DataCoordSegmentInfo
=
ParamItem
{
Key
:
"
common
.chanNamePrefix.dataCoordSegmentInfo"
,
Key
:
"
msgChannel
.chanNamePrefix.dataCoordSegmentInfo"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.chanNamePrefix.dataCoordSegmentInfo"
},
FallbackKeys
:
[]
string
{
"
common
.chanNamePrefix.dataCoordSegmentInfo"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
DataCoordSegmentInfo
.
Init
(
base
.
mgr
)
p
.
DataCoordSubName
=
ParamItem
{
Key
:
"
common
.subNamePrefix.dataCoordSubNamePrefix"
,
Key
:
"
msgChannel
.subNamePrefix.dataCoordSubNamePrefix"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.subNamePrefix.dataCoordSubNamePrefix"
},
FallbackKeys
:
[]
string
{
"
common
.subNamePrefix.dataCoordSubNamePrefix"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
p
.
DataCoordSubName
.
Init
(
base
.
mgr
)
p
.
DataCoordWatchSubPath
=
ParamItem
{
Key
:
"
common
.subNamePrefix.dataCoordWatchSubPath"
,
Key
:
"
msgChannel
.subNamePrefix.dataCoordWatchSubPath"
,
Version
:
"2.1.0"
,
DefaultValue
:
"channelwatch"
,
PanicIfEmpty
:
true
,
...
...
@@ -361,9 +361,9 @@ func (p *commonConfig) init(base *BaseTable) {
p
.
DataCoordWatchSubPath
.
Init
(
base
.
mgr
)
p
.
DataNodeSubName
=
ParamItem
{
Key
:
"
common
.subNamePrefix.dataNodeSubNamePrefix"
,
Key
:
"
msgChannel
.subNamePrefix.dataNodeSubNamePrefix"
,
Version
:
"2.1.0"
,
FallbackKeys
:
[]
string
{
"
msgChannel
.subNamePrefix.dataNodeSubNamePrefix"
},
FallbackKeys
:
[]
string
{
"
common
.subNamePrefix.dataNodeSubNamePrefix"
},
PanicIfEmpty
:
true
,
Formatter
:
chanNamePrefix
,
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录