From ec2134f758aed735905c7909bea6965e00bc1a7f Mon Sep 17 00:00:00 2001 From: liuyao <54liuyao@163.com> Date: Thu, 13 Jul 2023 16:24:38 +0800 Subject: [PATCH] op ci --- source/libs/stream/src/tstreamFileState.c | 1 + tests/script/tsim/stream/checkpoint0.sim | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/source/libs/stream/src/tstreamFileState.c b/source/libs/stream/src/tstreamFileState.c index a0e3d49591..6d61f65394 100644 --- a/source/libs/stream/src/tstreamFileState.c +++ b/source/libs/stream/src/tstreamFileState.c @@ -509,6 +509,7 @@ int32_t recoverSnapshot(SStreamFileState* pFileState, int64_t ckId) { taosMemoryFreeClear(pNode); break; } + ASSERT(pVLen == pFileState->rowSize); memcpy(pNewPos->pRowBuff, pVal, pVLen); code = tSimpleHashPut(pFileState->rowBuffMap, pNewPos->pKey, pFileState->keyLen, &pNewPos, POINTER_BYTES); if (code != TSDB_CODE_SUCCESS) { diff --git a/tests/script/tsim/stream/checkpoint0.sim b/tests/script/tsim/stream/checkpoint0.sim index 3f2457347a..325667ee2b 100644 --- a/tests/script/tsim/stream/checkpoint0.sim +++ b/tests/script/tsim/stream/checkpoint0.sim @@ -49,6 +49,12 @@ if $data02 != 3 then goto loop0 endi +print waiting for checkpoint generation ...... + +sleep 25000 + +print restart taosd + system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s start