fix:[TD-30365] ci case error & drop topic error if vnode is splitted
This commit is contained in:
parent
461b4add4c
commit
0e337d3418
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue