mirror of https://github.com/milvus-io/milvus.git
fix: channel name can not contains '-partition-' (#28689)
issue: https://github.com/milvus-io/milvus/issues/28675 Signed-off-by: sunby <sunbingyi1992@gmail.com>pull/28696/head
parent
3199da3b77
commit
2843664a20
|
@ -237,8 +237,14 @@ func (p *commonConfig) init(base *BaseTable) {
|
|||
}
|
||||
p.ClusterPrefix.Init(base.mgr)
|
||||
|
||||
pulsarPartitionKeyword := "-partition-"
|
||||
chanNamePrefix := func(prefix string) string {
|
||||
return strings.Join([]string{p.ClusterPrefix.GetValue(), prefix}, "-")
|
||||
str := strings.Join([]string{p.ClusterPrefix.GetValue(), prefix}, "-")
|
||||
if strings.Contains(str, pulsarPartitionKeyword) {
|
||||
// there is a bug in pulsar client go, please refer to https://github.com/milvus-io/milvus/issues/28675
|
||||
panic("channel name can not contains '-partition-'")
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
// --- rootcoord ---
|
||||
|
|
Loading…
Reference in New Issue