mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
Fix missing dml nodeIDs when recovering from old version (#17800)
issue: #17416 Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
5471e35ccc
commit
9d2e5aacbc
@ -253,9 +253,6 @@ func (m *MetaReplica) reloadFromKV() error {
|
||||
nodes[nodeID] = struct{}{}
|
||||
}
|
||||
}
|
||||
for nodeID := range nodes {
|
||||
replica.NodeIds = append(replica.NodeIds, nodeID)
|
||||
}
|
||||
|
||||
shardReplicas := make([]*milvuspb.ShardReplica, 0, len(dmChannels[collectionInfo.CollectionID]))
|
||||
for _, dmc := range dmChannels[collectionInfo.CollectionID] {
|
||||
@ -264,6 +261,12 @@ func (m *MetaReplica) reloadFromKV() error {
|
||||
// LeaderAddr: Will set it after the cluster is reloaded
|
||||
DmChannelName: dmc.DmChannel,
|
||||
})
|
||||
nodes[dmc.NodeIDLoaded] = struct{}{}
|
||||
}
|
||||
replica.ShardReplicas = shardReplicas
|
||||
|
||||
for nodeID := range nodes {
|
||||
replica.NodeIds = append(replica.NodeIds, nodeID)
|
||||
}
|
||||
|
||||
err = m.addReplica(replica)
|
||||
|
Loading…
Reference in New Issue
Block a user