You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/04/04 02:30:13 UTC

[GitHub] [kafka] Evelyn-Bayes commented on a change in pull request #8836: KAFKA-10124:Wrong rebalance.time.ms

Evelyn-Bayes commented on a change in pull request #8836:
URL: https://github.com/apache/kafka/pull/8836#discussion_r606735943



##########
File path: core/src/main/scala/kafka/tools/ConsumerPerformance.scala
##########
@@ -105,16 +105,14 @@ object ConsumerPerformance extends LazyLogging {
     var messagesRead = 0L
     var lastBytesRead = 0L
     var lastMessagesRead = 0L
-    var joinStart = 0L
     var joinTimeMsInSingleRound = 0L
 
     consumer.subscribe(topics.asJava, new ConsumerRebalanceListener {
       def onPartitionsAssigned(partitions: util.Collection[TopicPartition]): Unit = {
-        joinTime.addAndGet(System.currentTimeMillis - joinStart)

Review comment:
       This has been patched:
   https://github.com/apache/kafka/commit/7ceb34bbeccab1d16def1812aecd61a6a3f021e0




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