nodece commented on code in PR #24638: URL: https://github.com/apache/pulsar/pull/24638#discussion_r2282537250
########## pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java: ########## @@ -2229,13 +2229,15 @@ protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) { // create operation will complete, the new consumer will be discarded. log.info("[{}] Closed consumer before its creation was completed. consumerId={}", remoteAddress, consumerId); + consumers.remove(consumerId, consumerFuture); commandSender.sendSuccessResponse(requestId); return; } if (consumerFuture.isCompletedExceptionally()) { log.info("[{}] Closed consumer that already failed to be created. consumerId={}", remoteAddress, consumerId); + consumers.remove(consumerId, consumerFuture); Review Comment: @BewareMyPower -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org