mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 19:08:30 +08:00
Print error when failed to broadcast message (#17595)
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
parent
04f836f516
commit
8e2797fe30
@ -110,7 +110,7 @@ func (d *dmlChannels) broadcast(chanNames []string, pack *msgstream.MsgPack) err
|
||||
dms.mutex.RLock()
|
||||
if dms.refcnt > 0 {
|
||||
if err := dms.ms.Broadcast(pack); err != nil {
|
||||
log.Error("Broadcast failed", zap.String("chanName", chanName))
|
||||
log.Error("Broadcast failed", zap.Error(err), zap.String("chanName", chanName))
|
||||
dms.mutex.RUnlock()
|
||||
return err
|
||||
}
|
||||
@ -134,7 +134,7 @@ func (d *dmlChannels) broadcastMark(chanNames []string, pack *msgstream.MsgPack)
|
||||
if dms.refcnt > 0 {
|
||||
ids, err := dms.ms.BroadcastMark(pack)
|
||||
if err != nil {
|
||||
log.Error("BroadcastMark failed", zap.String("chanName", chanName))
|
||||
log.Error("BroadcastMark failed", zap.Error(err), zap.String("chanName", chanName))
|
||||
dms.mutex.RUnlock()
|
||||
return result, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user