Skip to content

Commit

Permalink
fix:when isPopShouldStop hit, unlock queueLockManager
Browse files Browse the repository at this point in the history
  • Loading branch information
leizhiyuan committed Aug 29, 2024
1 parent 8859093 commit f9ea22f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ private CompletableFuture<Long> popMsgFromQueue(String topic, String attemptId,
if (isPopShouldStop(topic, requestHeader.getConsumerGroup(), queueId)) {
POP_LOGGER.warn("Too much msgs unacked, then stop poping. topic={}, group={}, queueId={}", topic, requestHeader.getConsumerGroup(), queueId);
restNum = this.brokerController.getMessageStore().getMaxOffsetInQueue(topic, queueId) - offset + restNum;
future.whenComplete((result, throwable) -> queueLockManager.unLock(lockKey));
future.complete(restNum);
return future;
}
Expand Down

0 comments on commit f9ea22f

Please sign in to comment.