fix: Fix datanode cannot watch channel (#35136)

Panic when `checkWatchedList` failed, this can avoid unnoticed quit of
the channel watch goroutine.

issue: https://github.com/milvus-io/milvus/issues/35135

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/35074/head
yihao.dai 2024-08-05 15:24:17 +08:00 committed by GitHub
parent 20dca130c6
commit 080ed6d96a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func (node *DataNode) StartWatchChannels(ctx context.Context) {
err := node.checkWatchedList()
if err != nil {
log.Warn("StartWatchChannels failed", zap.Error(err))
return
panic(err)
}
for {
select {