From 5d3cc2be4ba4b2db79e03d1c22fc1a6d5f445a8a Mon Sep 17 00:00:00 2001 From: Neil Shen Date: Fri, 29 Oct 2021 16:36:00 +0800 Subject: [PATCH] address comments Signed-off-by: Neil Shen --- cdc/entry/schema_storage.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdc/entry/schema_storage.go b/cdc/entry/schema_storage.go index 534b1eddc6a..28a49d60a03 100644 --- a/cdc/entry/schema_storage.go +++ b/cdc/entry/schema_storage.go @@ -729,7 +729,8 @@ func (s *schemaStorageImpl) GetSnapshot(ctx context.Context, ts uint64) (*schema snap, err = s.getSnapshot(ts) now := time.Now() if now.Sub(logTime) >= 30*time.Second && isRetryable(err) { - log.Warn("GetSnapshot is taking too long, DDL puller stuck?", zap.Uint64("ts", ts)) + log.Warn("GetSnapshot is taking too long, DDL puller stuck?", + zap.Uint64("ts", ts), zap.Duration("duration", now.Sub(startTime))) logTime = now } return err