test: add test case for auto compact

This commit is contained in:
kailixu 2024-12-27 18:54:22 +08:00
parent 289f8181a1
commit fcd436830f
2 changed files with 6 additions and 6 deletions

View File

@ -2570,13 +2570,13 @@ static void mndDumpDbInfoData(SMnode *pMnode, SSDataBlock *pBlock, SDbObj *pDb,
len = formatDurationOrKeep(durationStr, sizeof(durationStr), pDb->cfg.compactStartTime);
formatDurationOrKeep(durationVstr, sizeof(durationVstr), pDb->cfg.compactEndTime);
snprintf(durationStr + len, sizeof(durationStr) - len, ",%s", durationVstr);
(void)snprintf(durationStr + len, sizeof(durationStr) - len, ",%s", durationVstr);
STR_WITH_MAXSIZE_TO_VARSTR(durationVstr, durationStr, sizeof(durationVstr));
if ((pColInfo = taosArrayGet(pBlock->pDataBlock, cols++))) {
TAOS_CHECK_GOTO(colDataSetVal(pColInfo, rows, (const char *)durationVstr, false), &lino, _OVER);
}
snprintf(durationStr, sizeof(durationStr), "%dh", pDb->cfg.compactTimeOffset);
(void)snprintf(durationStr, sizeof(durationStr), "%dh", pDb->cfg.compactTimeOffset);
STR_WITH_MAXSIZE_TO_VARSTR(durationVstr, durationStr, sizeof(durationVstr));
if ((pColInfo = taosArrayGet(pBlock->pDataBlock, cols++))) {
TAOS_CHECK_GOTO(colDataSetVal(pColInfo, rows, (const char *)durationVstr, false), &lino, _OVER);

View File

@ -115,10 +115,10 @@ class TDTestCase:
def run(self):
# self.alter_buffer()
# self.alter_pages()
# self.alter_encrypt_alrogithm()
# self.alter_same_options()
self.alter_buffer()
self.alter_pages()
self.alter_encrypt_alrogithm()
self.alter_same_options()
self.alter_compact()
def stop(self):