You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "fvaleri (via GitHub)" <gi...@apache.org> on 2025/08/01 12:41:16 UTC
Re: [PR] KAFKA-19498: Add include argument to ConsumerPerformance tool [kafka]
fvaleri commented on code in PR #20221:
URL: https://github.com/apache/kafka/pull/20221#discussion_r2247879788
##########
tools/src/main/java/org/apache/kafka/tools/ConsumerPerformance.java:
##########
@@ -134,8 +136,13 @@ private static void consume(KafkaConsumer<byte[], byte[]> consumer,
long reportingIntervalMs = options.reportingIntervalMs();
boolean showDetailedStats = options.showDetailedStats();
SimpleDateFormat dateFormat = options.dateFormat();
- consumer.subscribe(options.topic(),
- new ConsumerPerfRebListener(joinTimeMs, joinStartMs, joinTimeMsInSingleRound));
+
+ ConsumerPerfRebListener listener = new ConsumerPerfRebListener(joinTimeMs, joinStartMs, joinTimeMsInSingleRound);
Review Comment:
@chia7712 in the end I think that fetchTimeInMs can be corrupted also with the list of topics, for example if the number of partitions is increased. Wdyt?
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org