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 ADBFA200D71 for ; Thu, 21 Dec 2017 02:59:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AC256160C18; Thu, 21 Dec 2017 01:59:49 +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 C9B21160C15 for ; Thu, 21 Dec 2017 02:59:48 +0100 (CET) Received: (qmail 45573 invoked by uid 500); 21 Dec 2017 01:59:47 -0000 Mailing-List: contact dev-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 dev@kafka.apache.org Received: (qmail 45561 invoked by uid 99); 21 Dec 2017 01:59:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Dec 2017 01:59:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DDCF31A0FAE for ; Thu, 21 Dec 2017 01:59:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Level: X-Spam-Status: No, score=-2.301 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=confluent-io.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7TNZIXS1xTFh for ; Thu, 21 Dec 2017 01:59:44 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 85AAD5F282 for ; Thu, 21 Dec 2017 01:59:44 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id y89so13364042pfk.0 for ; Wed, 20 Dec 2017 17:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=confluent-io.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to; bh=dZefPkDvb6v3qIkmeLRSt9SIYzI4Tu50M6SFAzJXRTA=; b=xsXG6FX3YXz6myO6sVvxkxDwVhzvikx7AW5ejUNSppGpzPvBcgnlM31fwaHRYa3dYN UvKo3b9ZQriPFBsh1GxdyQJM3EVCDZzXQA3pBn/+eU7fSH2WKmcdLXzRP8qYK9l7n48M swlj5TowzodugwyRFsPowMTTkMj1ziSi7/x35O71Gg3VipZjIYwoX2zqRz1k2nKbgV1C 1x0qH1MswA6jrQLuc2vTwbXpkjeuewhsvM33vgVezvUwjASj5mLxBv+Ol7uGOHvaL1Xl +vOHPNU6eZciABcZRA8kQTP3Ilic2h4p/PuRRbQc0e+XYbSLEW5kBhU2oLmdWvI/tJFL jKmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to; bh=dZefPkDvb6v3qIkmeLRSt9SIYzI4Tu50M6SFAzJXRTA=; b=YJU17W2sPd5iyl67rUvCLGP7nUD53nUkT03DTCEjjFqHzThZStii/7hyNBI4Lowfgw Id5/lRkNcNqRLb8yygiNh8vsXgArDxqbaLJ+LByFoustC9JMPN/B1a7m7gRxeeWKliVc ZhRzp0WgSf6sGqu5xYEcjrK7g56R4RyoqImj5cg/RTzN+GmMPlew0yYdNzbo1zyHq56J vxYmdMHzRdVGD/APuHUP3ghsUhC3qdcU2UA/WtxqumkHHOwCX2IGZl+/qmtU+Z1RK+zj osielRJoFpfi59I3M19rHIJR0ioegnT+4wymUNR5fLmP5xVAraQHk78zEGOuBc4u+3zr uo1w== X-Gm-Message-State: AKGB3mJ2oYYI8EGVhPskCssuV333K6qRetN9JlfIj5gNrb5FKvNBjLfE tp8omu/3duw8L2GY3wn/0IL2PA2xJRo= X-Google-Smtp-Source: ACJfBosdsIJcm/+SmzZ9RkNuxmKbLZi1CmXYq4bRqTsO1axYWEFwqen9gZ96gJCbISCMst9UmyEc0Q== X-Received: by 10.99.120.196 with SMTP id t187mr7787086pgc.285.1513821583226; Wed, 20 Dec 2017 17:59:43 -0800 (PST) Received: from Matthias-Sax-Macbook-Pro.local (50-0-2-20.static.sonic.net. [50.0.2.20]) by smtp.gmail.com with ESMTPSA id j62sm27225850pgc.35.2017.12.20.17.59.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 17:59:42 -0800 (PST) Subject: Re: [VOTE] KIP-243: Make ProducerConfig and ConsumerConfig constructors public To: dev@kafka.apache.org References: From: "Matthias J. Sax" Organization: Confluent Inc Message-ID: <3571505b-0c54-98ba-11df-2e5045d4678d@confluent.io> Date: Wed, 20 Dec 2017 17:59:41 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OSjx1JkA3CwWykWwRgwf8QF8OUwH9Jiwu" archived-at: Thu, 21 Dec 2017 01:59:49 -0000 --OSjx1JkA3CwWykWwRgwf8QF8OUwH9Jiwu Content-Type: multipart/mixed; boundary="hFfplkT8BevkymIWjr8cnrr7qb8BPMzG9"; protected-headers="v1" From: "Matthias J. Sax" To: dev@kafka.apache.org Message-ID: <3571505b-0c54-98ba-11df-2e5045d4678d@confluent.io> Subject: Re: [VOTE] KIP-243: Make ProducerConfig and ConsumerConfig constructors public References: In-Reply-To: --hFfplkT8BevkymIWjr8cnrr7qb8BPMzG9 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable It's tailored for internal usage. I think client constructors don't benefit from accepting those config objects. We just want to be able to access the default values for certain parameters. =46rom a user point of view, it's actually boiler plate code if you pass in a config object instead of a plain Properties object because the config object itself is immutable. I actually create a JIRA to remove the constructors from KafkaStreams that do accept StreamsConfig for exact this reason: https://issues.apache.org/jira/browse/KAFKA-6386 -Matthias On 12/20/17 3:33 PM, Jason Gustafson wrote: > Hi Matthias, >=20 > Isn't it a little weird to make these constructors public but not also > expose the corresponding client constructors that use them? >=20 > -Jason >=20 > On Tue, Dec 19, 2017 at 9:30 AM, Bill Bejeck wrote:= >=20 >> +1 >> >> On Tue, Dec 19, 2017 at 12:09 PM, Guozhang Wang >> wrote: >> >>> +1 >>> >>> On Tue, Dec 19, 2017 at 1:49 AM, Tom Bentley >>> wrote: >>> >>>> +1 >>>> >>>> On 18 December 2017 at 23:28, Vahid S Hashemian < >>> vahidhashemian@us.ibm.com >>>>> >>>> wrote: >>>> >>>>> +1 >>>>> >>>>> Thanks for the KIP. >>>>> >>>>> --Vahid >>>>> >>>>> >>>>> >>>>> From: Ted Yu >>>>> To: dev@kafka.apache.org >>>>> Date: 12/18/2017 02:45 PM >>>>> Subject: Re: [VOTE] KIP-243: Make ProducerConfig and >>>> ConsumerConfig >>>>> constructors public >>>>> >>>>> >>>>> >>>>> +1 >>>>> >>>>> nit: via "copy and past" an 'e' is missing at the end. >>>>> >>>>> On Mon, Dec 18, 2017 at 2:38 PM, Matthias J. Sax < >>> matthias@confluent.io> >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I want to propose the following KIP: >>>>>> >>>>> https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__cwiki. >>>>> apache.org_confluence_display_KAFKA_KIP-2D&d=3DDwIBaQ&c=3Djf_ >>>>> iaSHvJObTbx-siA1ZOg&r=3DQ_itwloTQj3_xUKl7Nzswo6KE4Nj- >>>>> kjJc7uSVcviKUc&m=3DJToRX4-HeVsRoOekIz18ht-YLMe-T21MttZTgbxB4ag&s=3D= >>>>> 6aZjPCc9e00raokVPKvx1BxwDOHyCuKNgtBXPMeoHy4&e=3D >>>>> >>>>>> 243%3A+Make+ProducerConfig+and+ConsumerConfig+constructors+public >>>>>> >>>>>> >>>>>> This is a rather straight forward change, thus I skip the DISCUSS >>>>>> thread and call for a vote immediately. >>>>>> >>>>>> >>>>>> -Matthias >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >>> >>> -- >>> -- Guozhang >>> >> >=20 --hFfplkT8BevkymIWjr8cnrr7qb8BPMzG9-- --OSjx1JkA3CwWykWwRgwf8QF8OUwH9Jiwu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJKBAEBCgA0FiEEFpAnjJ4fbvgzKNUmjQjbao0qTDYFAlo7FY0WHG1hdHRoaWFz QGNvbmZsdWVudC5pbwAKCRCNCNtqjSpMNrwPD/sEmJIoTBVmauFpZ6+MvjTICv19 USd2NTRQzQa0jTjlmvEVwWOsjaJlHyFrd/kvytjFRZxfIkx+ht+vi7AbhnEBjbq6 OX70DsxoWLFQOBAs6fxtcs9CMREI2DiHIyKBOaM4qDTjfNvlfwTUegHjXnYUpJq0 iNVGq1YpfzCDham37BXmKKlefVc0k/L98fE7xWHYrdd6ddijYqQ2FK/nDOs5xNax L+ztDAnu7zTLa24CfLNlg3gxzL1VENsQujEz3myh1IM+xTRdV4ZN5tz9AIp4PwIX 3xKU2Q53FuLnri5uvlPCy96z/gAJTdt9Y8l1ex/5HWNydVFXOcU28e5r0NfyZT47 zoybqCXZWjl8rQM64cerAjIMIoepcafsB5HRwH6gy8ZOjyxvT3PpTILPoixLuj0d h71Ublohdh1lWn8hfYgJ9crde+iSqRnLcXGiuxmHwqaGZx3HSRMXpRYXA+GMl9Hq r4oXvt4DCL4mBlmClyztqBwlz3z0ZjamyZ/WdiQPp/gX04UIGaweFUYVGpnDfr9u ilznWvbMg0VD1q0uKw+eZr/p0ROjjawi3/WXOnAShycS+uawqWftsGTmY+Ao+ek6 xbFMQTvQJw+W/pvYBEzmgGw4WKFMSNRtBWprgFxazY3+eM8bnzItmlQKSZ08vVFw N588qwPJz/2AZDlA6g== =wGm1 -----END PGP SIGNATURE----- --OSjx1JkA3CwWykWwRgwf8QF8OUwH9Jiwu--