mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Check watchlist error (#9953)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
ffd67de9cb
commit
bf71965f58
@ -209,7 +209,11 @@ func (node *DataNode) StartWatchChannels(ctx context.Context) {
|
||||
watchPrefix := fmt.Sprintf("%s/%d", Params.ChannelWatchSubPath, node.NodeID)
|
||||
evtChan := node.kvClient.WatchWithPrefix(watchPrefix)
|
||||
// after watch, first check all exists nodes first
|
||||
node.checkWatchedList()
|
||||
err := node.checkWatchedList()
|
||||
if err != nil {
|
||||
log.Warn("StartWatchChannels failed", zap.Error(err))
|
||||
return
|
||||
}
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user