315157973 commented on a change in pull request #9860:
URL: https://github.com/apache/pulsar/pull/9860#discussion_r591566708



##########
File path: 
pulsar-client-tools/src/main/java/org/apache/pulsar/client/cli/CmdConsume.java
##########
@@ -248,6 +263,9 @@ private int consume(String topic) {
                     System.out.println(output);
                     consumer.acknowledge(msg);
                 }
+                if (dataConsistencyChecker != null && msg != null && 
msg.hasKey()) {
+                    dataConsistencyChecker.messageReceived(msg.getKey());
+                }
             }
             client.close();

Review comment:
       There seems to be a bug here. When an exception is thrown, the client 
will never be closed?




----------------------------------------------------------------
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.

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


Reply via email to