From 7e353977a314afa391bf0556ad2045bc566f75e1 Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Sat, 18 Sep 2021 14:51:25 +0300 Subject: [PATCH] [pulsar-perf] Make it possible to disable poolMessages - JCommander requires passing arity = 1 to boolean parameters that have a default value of true. --- .../org/apache/pulsar/testclient/PerformanceConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java b/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java index 49eb0c9f4c40f..3b8973e8b9b12 100644 --- a/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java +++ b/pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java @@ -176,11 +176,11 @@ static class Arguments { @Parameter(names = {"-ioThreads", "--num-io-threads"}, description = "Set the number of threads to be " + "used for handling connections to brokers, default is 1 thread") public int ioThreads = 1; - + @Parameter(names = {"--batch-index-ack" }, description = "Enable or disable the batch index acknowledgment") public boolean batchIndexAck = false; - @Parameter(names = { "-pm", "--pool-messages" }, description = "Use the pooled message") + @Parameter(names = { "-pm", "--pool-messages" }, description = "Use the pooled message", arity = 1) private boolean poolMessages = true; @Parameter(names = {"-bw", "--busy-wait"}, description = "Enable Busy-Wait on the Pulsar client")