From a833d5d76946ca9162c95e3d88f2700ba8005410 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 14 Sep 2023 10:39:22 +0800 Subject: [PATCH] fix:need update epset if unsubscribe topic and topicNumGet is 0 at the same time --- source/client/src/clientTmq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientTmq.c b/source/client/src/clientTmq.c index bede846762..62fb23c064 100644 --- a/source/client/src/clientTmq.c +++ b/source/client/src/clientTmq.c @@ -1449,7 +1449,7 @@ static bool doUpdateLocalEp(tmq_t* tmq, int32_t epoch, const SMqAskEpRsp* pRsp) bool set = false; int32_t topicNumGet = taosArrayGetSize(pRsp->topics); - if (topicNumGet <= 0) { + if (topicNumGet <= 0 && epoch <= tmq->epoch) { tscInfo("consumer:0x%" PRIx64 " no update ep epoch from %d to epoch %d, incoming topics:%d", tmq->consumerId, tmq->epoch, epoch, topicNumGet); return false;