From d31ee66d6399dc97462f3ee003e9db7fb8aa3284 Mon Sep 17 00:00:00 2001 From: Benguang Zhao Date: Tue, 20 Jun 2023 19:52:29 +0800 Subject: [PATCH] enh: taosMsleep 1 on syncLogStorePersist failure --- source/libs/sync/src/syncPipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libs/sync/src/syncPipeline.c b/source/libs/sync/src/syncPipeline.c index 794d80bbfa..92f34db16d 100644 --- a/source/libs/sync/src/syncPipeline.c +++ b/source/libs/sync/src/syncPipeline.c @@ -482,6 +482,7 @@ int64_t syncLogBufferProceed(SSyncLogBuffer* pBuf, SSyncNode* pNode, SyncTerm* p if (syncLogStorePersist(pLogStore, pNode, pEntry) < 0) { sError("vgId:%d, failed to persist sync log entry from buffer since %s. index:%" PRId64, pNode->vgId, terrstr(), pEntry->index); + taosMsleep(1); goto _out; } ASSERT(pEntry->index == pBuf->matchIndex); -- GitLab