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



##########
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:
       @315157973 
   the JVM will be aborted anyway, so it is not a big deal to not close the 
client




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to