sjhajharia commented on code in PR #22786:
URL: https://github.com/apache/kafka/pull/22786#discussion_r3594453368


##########
tools/src/main/java/org/apache/kafka/tools/VerifiableShareConsumer.java:
##########
@@ -573,6 +636,21 @@ private static ArgumentParser argParser() {
             .metavar("ACKNOWLEDGEMENT-MODE")
             .help("Acknowledgement mode for the share consumers (must be 
either 'auto', 'sync' or 'async')");
 
+        parser.addArgument("--ack-pattern")
+            .action(store())
+            .required(false)
+            .setDefault("")
+            .type(String.class)
+            .dest("ackPattern")
+            .metavar("ACK-PATTERN")
+            .help("Comma-separated cycle of accept|release|reject|renew 
applied to each consumed record " +
+                "via AcknowledgeType, selected by (record offset % pattern 
length). RENEW re-delivers the " +
+                "same record, so its next delivery advances to the following 
pattern entry instead of " +
+                "renewing again (a pattern of only 'renew' is rejected, since 
it could never resolve). " +
+                "When set, the share consumer is switched to explicit 
acknowledgement mode and requires " +

Review Comment:
   Thanks for the feedback. Addressed the same.



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