fix:[TD-30365] ci case error & drop topic error if vnode is splitted

This commit is contained in:
wangmm0220 2024-06-06 17:26:20 +08:00
parent 461b4add4c
commit 0e337d3418
1 changed files with 1 additions and 1 deletions

View File

@ -685,13 +685,13 @@ int32_t tqProcessSubscribeReq(STQ* pTq, int64_t sversion, char* msg, int32_t msg
tqInfo("vgId:%d switch consumer from Id:0x%" PRIx64 " to Id:0x%" PRIx64, req.vgId, pHandle->consumerId,
req.newConsumerId);
tqUnregisterPushHandle(pTq, pHandle);
taosHashRemove(pTq->pHandle, pHandle->subKey, strlen(pHandle->subKey));
// update handle to avoid req->qmsg changed if spilt vnode is failed
STqHandle handle = {0};
ret = tqCreateHandle(pTq, &req, &handle, pHandle->snapshotVer);
if (ret < 0) {
tqDestroyTqHandle(&handle);
taosWUnLockLatch(&pTq->lock);
goto end;
}
ret = tqMetaSaveHandle(pTq, req.subKey, &handle);