aloyszhang commented on code in PR #17269:
URL: https://github.com/apache/pulsar/pull/17269#discussion_r962748407


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java:
##########
@@ -1836,6 +1845,9 @@ protected void handleCloseConsumer(CommandCloseConsumer 
closeConsumer) {
             consumers.remove(consumerId, consumerFuture);
             commandSender.sendSuccessResponse(requestId);
             log.info("[{}] Closed consumer, consumerId={}", remoteAddress, 
consumerId);
+            if (getBrokerService().getInterceptor() != null) {
+                getBrokerService().getInterceptor().consumerClosed(this, 
consumer, null);

Review Comment:
   This should be the metadata for producer or consumer.



##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java:
##########
@@ -1836,6 +1845,9 @@ protected void handleCloseConsumer(CommandCloseConsumer 
closeConsumer) {
             consumers.remove(consumerId, consumerFuture);
             commandSender.sendSuccessResponse(requestId);
             log.info("[{}] Closed consumer, consumerId={}", remoteAddress, 
consumerId);
+            if (getBrokerService().getInterceptor() != null) {
+                getBrokerService().getInterceptor().consumerClosed(this, 
consumer, null);

Review Comment:
   This should be the metadata for the producer or consumer.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to