Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4AF5E200C49 for ; Fri, 17 Mar 2017 17:15:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 494EB160B80; Fri, 17 Mar 2017 16:15:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B9074160B6D for ; Fri, 17 Mar 2017 17:15:36 +0100 (CET) Received: (qmail 19665 invoked by uid 500); 17 Mar 2017 16:15:35 -0000 Mailing-List: contact dev-help@storm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@storm.apache.org Delivered-To: mailing list dev@storm.apache.org Received: (qmail 19654 invoked by uid 99); 17 Mar 2017 16:15:35 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2017 16:15:35 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 83960DFE1E; Fri, 17 Mar 2017 16:15:35 +0000 (UTC) From: srdo To: dev@storm.apache.org Reply-To: dev@storm.apache.org References: In-Reply-To: Subject: [GitHub] storm pull request #1924: STORM-2343: New Kafka spout can stop emitting tupl... Content-Type: text/plain Message-Id: <20170317161535.83960DFE1E@git1-us-west.apache.org> Date: Fri, 17 Mar 2017 16:15:35 +0000 (UTC) archived-at: Fri, 17 Mar 2017 16:15:37 -0000 Github user srdo commented on a diff in the pull request: https://github.com/apache/storm/pull/1924#discussion_r106687999 --- Diff: external/storm-kafka-client/src/test/java/org/apache/storm/kafka/spout/builders/SingleTopicKafkaSpoutConfiguration.java --- @@ -41,31 +41,22 @@ public static Config getConfig() { public static StormTopology getTopologyKafkaSpout(int port) { final TopologyBuilder tp = new TopologyBuilder(); - tp.setSpout("kafka_spout", new KafkaSpout<>(getKafkaSpoutConfig(port)), 1); + tp.setSpout("kafka_spout", new KafkaSpout<>(getKafkaSpoutConfigBuilder(port).build()), 1); --- End diff -- The SingleTopicKafkaSpoutConfiguration class was beginning to turn into a mess of telescoping constructors, and it was a bit silly given that we already have a nice builder interface underlying that class. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---