kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-6724) ConsumerPerformance resets offsets on every startup
Date Wed, 28 Mar 2018 17:34:00 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-6724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417807#comment-16417807
] 

ASF GitHub Bot commented on KAFKA-6724:
---------------------------------------

hachikuji closed pull request #4787: KAFKA-6724 ConsumerPerformance resets offsets on every
startup
URL: https://github.com/apache/kafka/pull/4787
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/core/src/main/scala/kafka/tools/ConsumerPerformance.scala b/core/src/main/scala/kafka/tools/ConsumerPerformance.scala
index a3e60e652c4..7e0dbcbe064 100644
--- a/core/src/main/scala/kafka/tools/ConsumerPerformance.scala
+++ b/core/src/main/scala/kafka/tools/ConsumerPerformance.scala
@@ -157,8 +157,6 @@ object ConsumerPerformance extends LazyLogging {
       def onPartitionsRevoked(partitions: util.Collection[TopicPartition]) {
         joinStart = System.currentTimeMillis
       }})
-    consumer.poll(0)
-    consumer.seekToBeginning(Collections.emptyList())
 
     // Now start the benchmark
     val startMs = System.currentTimeMillis


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


> ConsumerPerformance resets offsets on every startup
> ---------------------------------------------------
>
>                 Key: KAFKA-6724
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6724
>             Project: Kafka
>          Issue Type: Bug
>          Components: core, tools
>    Affects Versions: 0.11.0.1
>            Reporter: Alex Dunayevsky
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> ConsumerPerformance used in kafka-consumer-perf-test.sh resets offsets for it's group
on every startup. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message