Skip to content

Commit

Permalink
[pulsar-broker] Cleanup already deleted namespace topics. (#12583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- committed Nov 19, 2021
1 parent 48ee424 commit 6e4c9d2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1419,9 +1419,8 @@ protected void handleCloseProducer(CommandCloseProducer closeProducer) {

CompletableFuture<Producer> producerFuture = producers.get(producerId);
if (producerFuture == null) {
log.warn("[{}] Producer was not registered on the connection. producerId={}", remoteAddress, producerId);
commandSender.sendErrorResponse(requestId, ServerError.UnknownError,
"Producer was not registered on the connection");
log.info("[{}] Producer {} was not registered on the connection", remoteAddress, producerId);
ctx.writeAndFlush(Commands.newSuccess(requestId));
return;
}

Expand Down Expand Up @@ -1466,8 +1465,8 @@ protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) {

CompletableFuture<Consumer> consumerFuture = consumers.get(consumerId);
if (consumerFuture == null) {
log.warn("[{}] Consumer was not registered on the connection: consumerId={}", remoteAddress, consumerId);
commandSender.sendErrorResponse(requestId, ServerError.MetadataError, "Consumer not found");
log.info("[{}] Consumer was not registered on the connection: {}", consumerId, remoteAddress);
ctx.writeAndFlush(Commands.newSuccess(requestId));
return;
}

Expand Down

0 comments on commit 6e4c9d2

Please sign in to comment.