From 899dfe8a7417a545a0c049c7d77876c8eaee5667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=85?= Date: Sat, 9 Dec 2023 00:00:15 +0800 Subject: [PATCH] plugin: add lost rewatch sleep in plugin loop (#49292) ref pingcap/tidb#49273 --- pkg/plugin/plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/plugin/plugin.go b/pkg/plugin/plugin.go index 20949aa89159d..cf5401bbb8263 100644 --- a/pkg/plugin/plugin.go +++ b/pkg/plugin/plugin.go @@ -289,6 +289,7 @@ func (w *flushWatcher) watchLoop() { "plugin flushWatcher old chan closed, restart loop later", zap.String("plugin", w.manifest.Name), zap.Duration("after", reWatchInterval)) + time.Sleep(reWatchInterval) } }