Skip to content

Commit c84624e

Browse files
lhy1024zeminzhou
authored andcommitted
owner: add log when etcd watch meet cancel (pingcap#57154)
close pingcap#57166
1 parent 486fb0c commit c84624e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/owner/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ func (m *ownerManager) watchOwner(ctx context.Context, etcdSession *concurrency.
597597
}
598598
if resp.Canceled {
599599
metrics.WatchOwnerCounter.WithLabelValues(m.prompt, metrics.Cancelled).Inc()
600-
logger.Info("watch canceled, no owner")
600+
logger.Info("watch canceled, no owner", zap.Error(resp.Err()))
601601
return errors.Errorf("watch canceled, key: %v", key)
602602
}
603603

0 commit comments

Comments
 (0)