未验证 提交 cb6ae384 编写于 作者: H Hongze Cheng 提交者: GitHub

Merge pull request #8496 from taosdata/hotfix/TD-10824-D

[TD-10824-D]<fix>: compacting in 2 abnormally if vnode has no meta/data
......@@ -67,8 +67,9 @@ int tsdbCompact(STsdbRepo *pRepo) { return tsdbAsyncCompact(pRepo); }
void *tsdbCompactImpl(STsdbRepo *pRepo) {
// Check if there are files in TSDB FS to compact
if (REPO_FS(pRepo)->cstatus->pmf == NULL) {
tsdbInfo("vgId:%d no file to compact in FS", REPO_ID(pRepo));
pRepo->compactState = TSDB_NO_COMPACT;
tsem_post(&(pRepo->readyToCommit));
tsdbInfo("vgId:%d compact over, no file to compact in FS", REPO_ID(pRepo));
return NULL;
}
......
......@@ -1581,7 +1581,7 @@ class TDTestCase:
# self.td5798()
# develop branch
#self.td4889()
# self.td4889() In the scenario that with vnode/wal/wal* but without meta/data in vnode, the status is reset to 0 right now.
self.td5798()
def stop(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册