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 2B594200D60 for ; Fri, 1 Dec 2017 11:37:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 29B60160C06; Fri, 1 Dec 2017 10:37:57 +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 2108B160BFB for ; Fri, 1 Dec 2017 11:37:55 +0100 (CET) Received: (qmail 48949 invoked by uid 500); 1 Dec 2017 10:37:55 -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 48937 invoked by uid 99); 1 Dec 2017 10:37:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2017 10:37:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A8652180869 for ; Fri, 1 Dec 2017 10:37:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id pdFvdJZmTmoo for ; Fri, 1 Dec 2017 10:37:50 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9CB875F242 for ; Fri, 1 Dec 2017 10:37:49 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id 9so2651467wme.4 for ; Fri, 01 Dec 2017 02:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vEMOMRGFifSUfYaOly3jF2suCv3nxJUD0+MysODZToo=; b=tqFDpHGAD1wDbapM6PI9SM2TRgmO14HU+PjMr4/5txigC7rnjjC1TvJ9m8NvBcThMB ZItAIbkMf8V3oJqlg4OMHJ/wmGrzS9Pwytr6bMRJIEolijNM8qTyUMoy4WDaHcJy5gDU FBRkq8fv9iS+u25W4MIcB6SsmTbMmAPGsEpYTQqLJPnOL9+26Djs1Q1on1aQll0Y3icV BMcRlCZpR4J0x51yW5ZAhP+yXgD/isGdN4opgXyUGy7q9lfAIq4OBDz32guqmPySjfL0 rLm16OQ3+rNPVNyuAVw6dbywm0djNbqalKFajfvC3+0m8ZJx8TUIWj383Zx/Y5YwSWrO z2qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vEMOMRGFifSUfYaOly3jF2suCv3nxJUD0+MysODZToo=; b=KACIBoNvsuTQZYZTMI7LgmxhgQftADp9MWTvm+utDW/y2Ty4Ygg/sFxfTV2gBo6Skl mwtuQTTiSAOOPSIrcug95cJxItg0wiAD01prGzDOQUZl1zs+uKvnWUEzxMv+l2foWg/8 mkdZbea/DfleKp20NScLJ3/YRIeG6dimsg1cNfDkRYNQKQAn0yX5qxE3YHoIbiOQGlRE 4SRZcKaUbkqdsjg96yy7IQYuxdzhHtr8gXyiWGQWKuMxtjusDNrR/PR4M6X3L82D0gq0 xYD8qEH+37Ftn2hsLomcfsMJCNzhxE5/+eWTv1OLmcgHNmtwQbyvy4Zc9Yo3KhdCdlC7 usYg== X-Gm-Message-State: AJaThX4uwju2HWE04jrApCYZb6U+cMrWvDx5Vf8rCvW5QqFt1qrChuxg AaAplZKSM7RRT4ICR28j1AhnRBWr0f6l7Hub+laDPAbL X-Google-Smtp-Source: AGs4zMZIXwbqWc14CcOXp5DxHzldFBxcRBI+hBhSnCu0iIG7pffi1FNvxQKbCIKz73EbfmyJZUr4oVVkOdigI4BtyCA= X-Received: by 10.80.183.196 with SMTP id i4mr17616514ede.280.1512124668143; Fri, 01 Dec 2017 02:37:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.169.228 with HTTP; Fri, 1 Dec 2017 02:37:47 -0800 (PST) In-Reply-To: References: From: Tom Bentley Date: Fri, 1 Dec 2017 10:37:47 +0000 Message-ID: Subject: Re: [VOTE] KIP-201: Rationalising policy interfaces To: dev@kafka.apache.org Content-Type: multipart/alternative; boundary="94eb2c0df368b36ad2055f44f543" archived-at: Fri, 01 Dec 2017 10:37:57 -0000 --94eb2c0df368b36ad2055f44f543 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have a PR for this (https://github.com/apache/kafka/pull/4281) in case anyone wants to look at the implementation in detail, but right now this KIP still lacks any committer votes. Cheers, Tom On 22 November 2017 at 17:32, Tom Bentley wrote: > Hi everyone, > > I just wanted to highlight to committers that although this KIP has three > non-binding votes, it currently lacks any binding votes: Any feedback wou= ld > be appreciated. > > Cheers, > > Tom > > On 7 November 2017 at 20:42, Stephane Maarek au> wrote: > >> Okay makes sense thanks! As you said maybe in the future (or now), it's >> worth starting a server java dependency jar that's not called "client". >> Probably a debate for another day ( >> >> Tom, crossing fingers to see more votes on this! Good stuff >> >> >> =EF=BB=BFOn 7/11/17, 9:51 pm, "Ismael Juma" > ismael@juma.me.uk> wrote: >> >> The idea is that you only depend on a Java jar. The core jar include= s >> the >> Scala version in the name and you should not care about that when >> implementing a Java interface. >> >> Ismael >> >> On Tue, Nov 7, 2017 at 10:37 AM, Stephane Maarek < >> stephane@simplemachines.com.au> wrote: >> >> > Thanks ! >> > >> > How about a java folder package in the core then ? It's not a >> separate jar >> > and it's still java? >> > >> > Nonetheless I agree these are details. I just got really confused >> when >> > trying to write my policy and would hope that confusion is not >> shared by >> > others because it's a "client " class although should only reside >> within a >> > broker >> > >> > On 7 Nov. 2017 9:04 pm, "Ismael Juma" wrote: >> > >> > The location of the policies is fine. Note that the package _does >> not_ >> > include clients in the name. If we ever have enough server side >> only code >> > to merit a separate JAR, we can do that and it's mostly compatible >> (users >> > would only have to update their build dependency). Generally, all >> public >> > APIs going forward will be in Java. >> > >> > Ismael >> > >> > On Tue, Nov 7, 2017 at 9:44 AM, Stephane Maarek < >> > stephane@simplemachines.com.au> wrote: >> > >> > > Hi Tom, >> > > >> > > Regarding the java / scala compilation, I believe this is fine >> (the >> > > compiler will know), but any reason why you don't want the polic= y >> to be >> > > implemented using Scala ? (like the Authorizer) >> > > It's usually not best practice to mix in scala / java code. >> > > >> > > Thanks! >> > > Stephane >> > > >> > > Kind regards, >> > > Stephane >> > > >> > > [image: Simple Machines] >> > > >> > > Stephane Maarek | Developer >> > > >> > > +61 416 575 980 >> > > stephane@simplemachines.com.au >> > > simplemachines.com.au >> > > Level 2, 145 William Street, Sydney NSW 2010 >> > > >> > > On 7 November 2017 at 20:27, Tom Bentley >> wrote: >> > > >> > > > Hi Stephane, >> > > > >> > > > The vote on this KIP is on-going. >> > > > >> > > > I think it would be OK to make minor changes, but Edoardo and >> Mickael >> > > would >> > > > have to to not disagree with them. >> > > > >> > > > The packages have not been brought up as a problem before now. >> I don't >> > > know >> > > > the reason they're in the client's package, but I agree that >> it's not >> > > > ideal. To me the situation with the policies is analogous to t= he >> > > situation >> > > > with the Authorizer which is in core: They're both broker-side >> > extensions >> > > > points which users can provide their own implementations of. I >> don't >> > know >> > > > whether the scala compiler is OK compiling interdependent scal= a >> and >> > java >> > > > code (maybe Ismael knows?), but if it is, I would be happy if >> these >> > > > server-side policies were moved. >> > > > >> > > > Cheers, >> > > > >> > > > Tom >> > > > >> > > > On 7 November 2017 at 08:45, Stephane Maarek < >> > > stephane@simplemachines.com. >> > > > au >> > > > > wrote: >> > > > >> > > > > Hi Tom, >> > > > > >> > > > > What's the status of this? I was about to create a KIP to >> implement a >> > > > > SimpleCreateTopicPolicy >> > > > > (and Alter, etc...) >> > > > > These policies would have some most basic parameter to check >> for >> > > > > replication factor and min insync replicas (mostly) so that >> end users >> > > can >> > > > > leverage them out of the box. This KIP obviously changes the >> > interface >> > > so >> > > > > I'd like this to be in before I propose my KIP >> > > > > >> > > > > I'll add my +1 to this, and hopefully we get quick progress >> so I can >> > > > > propose my KIP. >> > > > > >> > > > > Finally, have the packages been discussed? >> > > > > I find it extremely awkward to have the current >> CreateTopicPolicy >> > part >> > > of >> > > > > the kafka-clients package, and would love to see the next >> classes >> > > you're >> > > > > implementing appear in core/src/main/scala/kafka/policy or >> > > > server/policy. >> > > > > Unless I'm missing something? >> > > > > >> > > > > Thanks for driving this >> > > > > Stephane >> > > > > >> > > > > Kind regards, >> > > > > Stephane >> > > > > >> > > > > [image: Simple Machines] >> > > > > >> > > > > Stephane Maarek | Developer >> > > > > >> > > > > +61 416 575 980 >> > > > > stephane@simplemachines.com.au >> > > > > simplemachines.com.au >> > > > > Level 2, 145 William Street, Sydney NSW 2010 >> > > > > >> > > > > On 25 October 2017 at 19:45, Tom Bentley < >> t.j.bentley@gmail.com> >> > > wrote: >> > > > > >> > > > > > It's been two weeks since I started the vote on this KIP a= nd >> > although >> > > > > there >> > > > > > are two votes so far there are no binding votes. Any >> feedback from >> > > > > > committers would be appreciated. >> > > > > > >> > > > > > Thanks, >> > > > > > >> > > > > > Tom >> > > > > > >> > > > > > On 12 October 2017 at 10:09, Edoardo Comar < >> ECOMAR@uk.ibm.com> >> > > wrote: >> > > > > > >> > > > > > > Thanks Tom with the last additions (changes to the >> protocol) it >> > now >> > > > > > > supersedes KIP-170 >> > > > > > > >> > > > > > > +1 non-binding >> > > > > > > -------------------------------------------------- >> > > > > > > >> > > > > > > Edoardo Comar >> > > > > > > >> > > > > > > IBM Message Hub >> > > > > > > >> > > > > > > IBM UK Ltd, Hursley Park, SO21 2JN >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > From: Tom Bentley >> > > > > > > To: dev@kafka.apache.org >> > > > > > > Date: 11/10/2017 09:21 >> > > > > > > Subject: [VOTE] KIP-201: Rationalising policy >> interfaces >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > I would like to start a vote on KIP-201, which proposes = to >> > replace >> > > > the >> > > > > > > existing policy interfaces with a single new policy >> interface >> > that >> > > > also >> > > > > > > extends policy support to cover new and existing APIs in >> the >> > > > > AdminClient. >> > > > > > > >> > > > > > > https://urldefense.proofpoint. >> com/v2/url?u=3Dhttps-3A__cwiki. >> > > > > > > apache.org_confluence_display_KAFKA_KIP-2D201-253A- >> > > > > > > 2BRationalising-2BPolicy-2Binterfaces&d=3DDwIBaQ&c=3Djf_ >> > > > > > iaSHvJObTbx-siA1ZOg&r=3D >> > > > > > > EzRhmSah4IHsUZVekRUIINhltZK7U0OaeRo7hgW4_tQ&m=3D >> > > tE3xo2lmmoCoFZAX60PBT- >> > > > > > > J8TBDWcv-tarJyAlgwfJY&s=3DpuFqZ3Ny4Xcdil5A5huwA5WZtS3WZp >> > > > D9517uJkCgrCk&e=3D >> > > > > > > >> > > > > > > >> > > > > > > Thanks for your time. >> > > > > > > >> > > > > > > Tom >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > Unless stated otherwise above: >> > > > > > > IBM United Kingdom Limited - Registered in England and >> Wales with >> > > > > number >> > > > > > > 741598. >> > > > > > > Registered office: PO Box 41, North Harbour, Portsmouth, >> > Hampshire >> > > > PO6 >> > > > > > 3AU >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> >> >> >> > --94eb2c0df368b36ad2055f44f543--