fix:coredump if saved epoch bigger than request epoch & modify test cases

This commit is contained in:
wangmm0220 2023-08-31 17:35:41 +08:00
parent 7f2a9a7262
commit a02ab4ccfb
2 changed files with 3 additions and 3 deletions

View File

@ -210,8 +210,8 @@ static int32_t extractDataAndRspForDbStbSubscribe(STQ* pTq, STqHandle* pHandle,
// uint64_t st = taosGetTimestampMs();
int totalRows = 0;
while (1) {
int32_t savedEpoch = atomic_load_32(&pHandle->epoch);
ASSERT (savedEpoch <= pRequest->epoch);
// int32_t savedEpoch = atomic_load_32(&pHandle->epoch);
// ASSERT (savedEpoch <= pRequest->epoch);
if (tqFetchLog(pTq, pHandle, &fetchVer, pRequest->reqId) < 0) {
tqOffsetResetToLog(&taosxRsp.rspOffset, fetchVer);

View File

@ -205,7 +205,7 @@ class TDTestCase:
tdLog.exit("show consumers %d not equal expect num: %d"%(topicNum, expectConsumerNUm))
flag = 0
for i in range(10):
while (1):
tdSql.query('show subscriptions;')
subscribeNum = tdSql.queryRows
tdLog.info(" get subscriptions count: %d"%(subscribeNum))