Add debug log in removing assignment (#17427)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2022-06-08 10:44:06 +08:00 committed by GitHub
parent 11fa3e24dd
commit 1dbfebf827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,6 +544,10 @@ func (c *ChannelManager) RemoveChannel(channelName string) error {
func (c *ChannelManager) remove(nodeID int64, ch *channel) error {
var op ChannelOpSet
op.Delete(nodeID, []*channel{ch})
log.Debug("remove channel assignment",
zap.Int64("nodeID to be removed", nodeID),
zap.String("channelID", ch.Name),
zap.Int64("collectionID", ch.CollectionID))
if err := c.store.Update(op); err != nil {
return err
}