From commits-return-9407-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Mon Apr 23 20:42:31 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 03BDA180679 for ; Mon, 23 Apr 2018 20:42:30 +0200 (CEST) Received: (qmail 56187 invoked by uid 500); 23 Apr 2018 18:42:22 -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 56109 invoked by uid 99); 23 Apr 2018 18:42:22 -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; Mon, 23 Apr 2018 18:42:22 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6003980959; Mon, 23 Apr 2018 18:42:21 +0000 (UTC) Date: Mon, 23 Apr 2018 18:42:21 +0000 To: "commits@kafka.apache.org" Subject: [kafka] branch trunk updated: MINOR: Fix formatting in --new-consumer deprecation warning (#4903) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152450894083.30419.11778690552266079902@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: ed51b2cdf5bdac210a6904bead1a2ca6e8411406 X-Git-Newrev: 35c75ea5036fbffe6ac74fe4f76a633bda061fec X-Git-Rev: 35c75ea5036fbffe6ac74fe4f76a633bda061fec 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 35c75ea MINOR: Fix formatting in --new-consumer deprecation warning (#4903) 35c75ea is described below commit 35c75ea5036fbffe6ac74fe4f76a633bda061fec Author: Patrik Erdes AuthorDate: Mon Apr 23 20:42:17 2018 +0200 MINOR: Fix formatting in --new-consumer deprecation warning (#4903) --- core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala | 4 ++-- core/src/main/scala/kafka/tools/ConsoleConsumer.scala | 2 +- core/src/main/scala/kafka/tools/ConsumerPerformance.scala | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala b/core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala index cb9fbe3..689a63c 100755 --- a/core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala +++ b/core/src/main/scala/kafka/admin/ConsumerGroupCommand.scala @@ -1017,8 +1017,8 @@ object ConsumerGroupCommand extends Logging { CommandLineUtils.checkRequiredArgs(parser, options, bootstrapServerOpt) if (options.has(newConsumerOpt)) { - Console.err.println(s"The $newConsumerOpt option is deprecated and will be removed in a future major release." + - s"The new consumer is used by default if the $bootstrapServerOpt option is provided.") + Console.err.println(s"The --new-consumer option is deprecated and will be removed in a future major release. " + + s"The new consumer is used by default if the --bootstrap-server option is provided.") } if (options.has(deleteOpt) && options.has(topicOpt)) diff --git a/core/src/main/scala/kafka/tools/ConsoleConsumer.scala b/core/src/main/scala/kafka/tools/ConsoleConsumer.scala index 5139324..7675d92 100755 --- a/core/src/main/scala/kafka/tools/ConsoleConsumer.scala +++ b/core/src/main/scala/kafka/tools/ConsoleConsumer.scala @@ -453,7 +453,7 @@ object ConsoleConsumer extends Logging { CommandLineUtils.checkRequiredArgs(parser, options, bootstrapServerOpt) if (options.has(newConsumerOpt)) { - Console.err.println("The --new-consumer option is deprecated and will be removed in a future major release." + + Console.err.println("The --new-consumer option is deprecated and will be removed in a future major release. " + "The new consumer is used by default if the --bootstrap-server option is provided.") } } diff --git a/core/src/main/scala/kafka/tools/ConsumerPerformance.scala b/core/src/main/scala/kafka/tools/ConsumerPerformance.scala index 7e0dbcb..d2aeab7 100644 --- a/core/src/main/scala/kafka/tools/ConsumerPerformance.scala +++ b/core/src/main/scala/kafka/tools/ConsumerPerformance.scala @@ -318,8 +318,8 @@ object ConsumerPerformance extends LazyLogging { CommandLineUtils.checkRequiredArgs(parser, options, bootstrapServersOpt) if (options.has(newConsumerOpt)) { - Console.err.println("The --new-consumer option is deprecated and will be removed in a future major release." + - "The new consumer is used by default if the --bootstrap-server option is provided.") + Console.err.println("The --new-consumer option is deprecated and will be removed in a future major release. " + + "The new consumer is used by default if the --broker-list option is provided.") } import org.apache.kafka.clients.consumer.ConsumerConfig -- To stop receiving notification emails like this one, please contact jgus@apache.org.