From commits-return-9294-apmail-kafka-commits-archive=kafka.apache.org@kafka.apache.org Wed Mar 28 17:33:29 2018 Return-Path: X-Original-To: apmail-kafka-commits-archive@www.apache.org Delivered-To: apmail-kafka-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1002518C1D for ; Wed, 28 Mar 2018 17:33:29 +0000 (UTC) Received: (qmail 24112 invoked by uid 500); 28 Mar 2018 17:33:28 -0000 Delivered-To: apmail-kafka-commits-archive@kafka.apache.org Received: (qmail 24066 invoked by uid 500); 28 Mar 2018 17:33:28 -0000 Mailing-List: contact commits-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list commits@kafka.apache.org Received: (qmail 24057 invoked by uid 99); 28 Mar 2018 17:33:28 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2018 17:33:28 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4A305809E7; Wed, 28 Mar 2018 17:33:28 +0000 (UTC) Date: Wed, 28 Mar 2018 17:33:28 +0000 To: "commits@kafka.apache.org" Subject: [kafka] branch trunk updated: KAFKA-6724; ConsumerPerformance should not always reset to earliest offsets (#4787) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152225840779.31692.9261104103613502207@gitbox.apache.org> From: jgus@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: kafka X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: 5d5a2ce4bba4b42b3652d0126d1d2dab979a3e07 X-Git-Newrev: dd7011783f7e013a0a40a0d4d0e38ac2612b36e1 X-Git-Rev: dd7011783f7e013a0a40a0d4d0e38ac2612b36e1 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. jgus pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git The following commit(s) were added to refs/heads/trunk by this push: new dd70117 KAFKA-6724; ConsumerPerformance should not always reset to earliest offsets (#4787) dd70117 is described below commit dd7011783f7e013a0a40a0d4d0e38ac2612b36e1 Author: Alex D AuthorDate: Wed Mar 28 20:33:23 2018 +0300 KAFKA-6724; ConsumerPerformance should not always reset to earliest offsets (#4787) Remove the explicit `seekToBeginning` on startup and instead rely on the consumer's auto offset reset strategy to set the initial position. --- core/src/main/scala/kafka/tools/ConsumerPerformance.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/src/main/scala/kafka/tools/ConsumerPerformance.scala b/core/src/main/scala/kafka/tools/ConsumerPerformance.scala index a3e60e6..7e0dbcb 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 -- To stop receiving notification emails like this one, please contact jgus@apache.org.