Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-08-13 Thread Tom Bentley
t; > > >> > > > >>> > > // proposed replica assignment in this request, or > null. > > >> For > > >> > > > >>> adding new > > >> > > > >>> > > partitions request, this is proposed replica assignment > for > > >> new > > >> > > > >>> parti

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-08-12 Thread Mickael Maison
gt; >> > > > >>> > > > >> > > > >>> > > I did not spend much time on my AlterTopicRequest interface > >> > > > >>> proposal, but > >> > > > >>> >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-08-12 Thread Tom Bentley
t; > and figure it out from inspecting the >> > replicasAssignments(). >> > > It >> > > > >>> would >> > > > >>> > >> be >> > > > >>> > >> > much better for the policy writer to just be able to &

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-04-12 Thread Tom Bentley
t;>> making > > > > >>> > >> policy-violating delete topics or delete records request. > > > > >>> > >> > > > > >>> > >> If no further comments a forthcoming in the next day or two > > > then I > > > > >>> will > > >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-04-10 Thread Rajini Sivaram
point about how the > > proposed > > > >>> API > > > >>> > >> > should behave. > > > >>> > >> > > > > >>> > >> > The current CreateTopicPolicy gets passed either the request > > > >>> partition > &

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-04-09 Thread Tom Bentley
gt; > >> >>> Ismael > > >>> > >> >>> > > >>> > >> >>> On Wed, Oct 4, 2017 at 9:20 AM, Tom Bentley < > > >>> t.j.bent...@gmail.com> > > >>> > >> >>> wrote: &g

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-04-09 Thread Rajini Sivaram
the current state available from the > >>> > >> > ClusterState, and also less symmetric between its use for > >>> createTopic() > >>> > >> and > >>> > >> > for alterTopic(). This can make it harder to write a policy. For > &

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2019-01-09 Thread Tom Bentley
t; > >> > and figure it out from inspecting the replicasAssignments(). It >>> would >>> > >> be >>> > >> > much better for the policy writer to just be able to write: >>> > >> > >>> >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2018-12-13 Thread Tom Bentley
t; ------------------ >> > >> >>> > > >> > >> >>> > > Edoardo Comar >> > >> >>> > > >> > >> >>> > > IBM Message Hub >> > >> >>> > > >&g

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2018-12-07 Thread Tom Bentley
017 at 11:06, Tom Bentley > wrote: > > >> > > > >> >> Good point. Then I guess I can do those items too. I would also > need to > > >> >> do the same changes for DeleteRecordsRequest and Response. > > >> >> > > >> &g

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2018-12-03 Thread Mickael Maison
> >> >>> 1. A policy that can't send errors to clients is much less useful > >> >>> 2. Testing policies is much easier with `validateOnly` > >> >>> > >> >>> Ismael > >> >>> > >> >>> On Wed, Oct 4, 2017 at 9:20 AM, Tom Bentley > >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2018-06-14 Thread Anna Povzner
t;> >>> > DeleteTopicRequest and adding an error message to >> DeleteTopicResponse. >> >>> > Since those are not policy-related I think they're best left out of >> >>> > KIP-201. I suppose it is up to you and Mickael whether to narrow the &

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2018-05-31 Thread Anna Povzner
gt; >>> > > Thanks Tom, > >>> > > looks got to me and KIP-201 could supersede KIP-170 > >>> > > but could you please add a missing motivation bullet that was > behind > >>> > > KIP-170: > >>> > > > >>> &

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-09 Thread Tom Bentley
authorizer >>> used >>> > for >>> > > > that (delete on topic) but fine grained control could be better >>> (even >>> > > > already happens for topic deletion). >>> > > > 2. I know about the problem of restarting broker

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-05 Thread Tom Bentley
> > not just against the request metadata but also >> > > against the current amount of resources already used in the cluster >> (eg >> > > number of partitions). >> > > >> > > thanks >> > > Edo >> > >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-04 Thread Tom Bentley
> > request > > > > > > not just against the request metadata but also > > > against the current amount of resources already used in the cluster (eg > > > number of partitions). > > > > > > thanks > > > Edo > > > ---------------------- > > > > > > E

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-04 Thread Ismael Juma
; > against the current amount of resources already used in the cluster (eg > > number of partitions). > > > > thanks > > Edo > > -- > > > > Edoardo Comar > > > > IBM Message Hub > > > > IBM UK Ltd, Hu

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-04 Thread Tom Bentley
> number of partitions). > > thanks > Edo > -- > > Edoardo Comar > > IBM Message Hub > > IBM UK Ltd, Hursley Park, SO21 2JN > > > > From: Tom Bentley > To: dev@kafka.apache.org > Date: 02/10/2017 15:15 > Subject:Re: [

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-04 Thread Edoardo Comar
: [DISCUSS] KIP-201: Rationalising Policy interfaces Hi All, I've updated KIP-201 again so there is now a single policy interface (and thus a single key by which to configure it) for topic creation, modification, deletion and record deletion, which each have their own validation method. Ther

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-10-02 Thread Tom Bentley
g : DevExperience<http://paolopatierno.wordpress.com/> > > > > From: isma...@gmail.com on behalf of Ismael Juma < > ism...@juma.me.uk> > Sent: Wednesday, September 27, 2017 10:30 AM > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP-201

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Paolo Patierno
esday, September 27, 2017 10:30 AM To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-201: Rationalising Policy interfaces A couple of questions: 1. Is this a concrete requirement from a user or is it hypothetical? 2. You sure you would want to do this in the broker instead of the clients? I

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Tom Bentley
Hi Ismael, Thanks for looking at the KIP and explaining the thinking behind the original API. Looking at the updated KIP, I notice that we actually have a > TopicDeletionPolicy with a separate config. That seems to be a halfway > house. Not sure about that. > I can certainly see that point of vi

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Ismael Juma
t; From: isma...@gmail.com on behalf of Ismael Juma < > ism...@juma.me.uk> > Sent: Wednesday, September 27, 2017 10:18 AM > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP-201: Rationalising Policy interfaces > > A couple more comments: > > 1. "If this KIP is ac

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Paolo Patierno
nesday, September 27, 2017 9:47 AM To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-201: Rationalising Policy interfaces I have updated the KIP to add a common policy interface for topic and message deletion. This included pulling ClusterState and TopicState interfaces up to the top level so that t

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Paolo Patierno
vExperience<http://paolopatierno.wordpress.com/> From: isma...@gmail.com on behalf of Ismael Juma Sent: Wednesday, September 27, 2017 10:18 AM To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-201: Rationalising Policy interfaces A couple more comments: 1. &q

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Ismael Juma
p into MetadataCache. No need for big upfront > > allocations. > > > > ciao, > > Edo > > -- > > > > Edoardo Comar > > > > IBM Message Hub > > > > IBM UK Ltd, Hursley Park, SO21 2JN >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Ismael Juma
} >> > >> > I think that the implementation of ClusterState that the server will >> pass >> > to the policy.validate method >> > would just lazily tap into MetadataCache. No need for big upfront >> > allocations. >> > >>

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-27 Thread Tom Bentley
> > From: Tom Bentley > To: dev@kafka.apache.org > Date: 26/09/2017 17:39 > Subject:Re: [DISCUSS] KIP-201: Rationalising Policy interfaces > > > > Hi Edoardo, > > > what about a single method in ClusterState > > > > interface Cluste

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Edoardo Comar
r big upfront allocations. ciao, Edo -- Edoardo Comar IBM Message Hub IBM UK Ltd, Hursley Park, SO21 2JN From: Tom Bentley To: dev@kafka.apache.org Date: 26/09/2017 17:39 Subject:Re: [DISCUSS] KIP-201: Rationalising Policy inter

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Tom Bentley
Hi Edoardo, what about a single method in ClusterState > > interface ClusterState { > public Map topicsState(); > > } > > which could return a read-only snapshot of the cluster metadata ? > Sure that would work too. A concern with that is that we end up allocating a potentially r

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Paolo Patierno
atierno> Blog : DevExperience<http://paolopatierno.wordpress.com/> From: Edoardo Comar Sent: Tuesday, September 26, 2017 4:18 PM To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP-201: Rationalising Policy interfaces Thanks Tom, what about a single

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Edoardo Comar
, Hursley Park, SO21 2JN From: Tom Bentley To: dev@kafka.apache.org Date: 26/09/2017 16:41 Subject:Re: [DISCUSS] KIP-201: Rationalising Policy interfaces Hi Edoardo and Ismael, Thanks for the comments. If we're going to have an new ClusterState parameter via which we can quer

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Tom Bentley
discussed in the KIP-204 thread. > -- > > Edoardo Comar > > IBM Message Hub > > IBM UK Ltd, Hursley Park, SO21 2JN > > > > From: Edoardo Comar > To: dev@kafka.apache.org > Date: 26/09/2017 14:01 &g

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Edoardo Comar
/09/2017 14:01 Subject:Re: [DISCUSS] KIP-201: Rationalising Policy interfaces Hi Tom, yes it makes sense to have a single KIP for enhancing these policies. As Mickael pointed out, we need that the create/alter topic policy are able to assess the current cluster metadata. KIP-170

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Ismael Juma
7;m happy if you incorporate the enhancements to create/alter that allow a > check against the cluster metadata > and leave out - to anther KIP, or maybe I'll rewrite 170 the changes to > delete. > > thanks > Edo > > ------------------ > > Edoardo Comar > > IBM Message Hub > >

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-26 Thread Edoardo Comar
Hub IBM UK Ltd, Hursley Park, SO21 2JN From: Tom Bentley To: dev@kafka.apache.org Date: 25/09/2017 18:11 Subject:Re: [DISCUSS] KIP-201: Rationalising Policy interfaces Hi Mickael, Thanks for the reply. Thanks for the KIP. Is this meant to superseed KIP-170 ? > If so,

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Tom Bentley
Hi Ismael, On 25 September 2017 at 17:51, Ismael Juma wrote: > We don't have this policy today for what it's worth. > Thanks for the clarification. On re-reading I realise I misinterpreted Guozhang Wang's suggestion when 1.0.0 was first mooted: > Just to clarify, my proposal is that moving fo

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Tom Bentley
Hi Mickael, Thanks for the reply. Thanks for the KIP. Is this meant to superseed KIP-170 ? > If so, one of our key requirements was to be able to access the > topics/partitions list from the policy, so an administrator could > enforce a partition limit for example. > It's not meant to replace KI

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Ismael Juma
On Mon, Sep 25, 2017 at 5:32 PM, Tom Bentley wrote: > > bq. If this KIP is accepted for Kafka 1.1.0 this removal could happen in > > Kafka 3.0.0 > > > > There would be no Kafka 2.0 ? > > > > As I understand it, a deprecation has to exist for a complete major version > number cycle before the feat

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Mickael Maison
Hi Tom, Thanks for the KIP. Is this meant to superseed KIP-170 ? If so, one of our key requirements was to be able to access the topics/partitions list from the policy, so an administrator could enforce a partition limit for example. Also instead of simply having the Java Principal object, could

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Ted Yu
bq. deprecations that are added in 1.x (x>0) have to remain in all 2.y Makes sense. It is fine to exclude KIP-113 from your KIP. Thanks On Mon, Sep 25, 2017 at 9:32 AM, Tom Bentley wrote: > Hi Ted, > > Thanks for the feedback! > > bq. topic.action.policy.class.name > > > > Since the policy wo

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Tom Bentley
Hi Ted, Thanks for the feedback! bq. topic.action.policy.class.name > > Since the policy would cover more than one action, how about using actions > for the second word ? > Good point, done. > For TopicState interface, the abstract modifier for its methods are not > needed. > Fixed. bq. KIP-

Re: [DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Ted Yu
bq. topic.action.policy.class.name Since the policy would cover more than one action, how about using actions for the second word ? For TopicState interface, the abstract modifier for its methods are not needed. bq. KIP-113 Mind adding more to the above bullet ? bq. If this KIP is accepted for

[DISCUSS] KIP-201: Rationalising Policy interfaces

2017-09-25 Thread Tom Bentley
Hi, I'd like to start a discussion for KIP-201. The basic point is that new AdminClient APIs for modifying topics should have a configurable policy to allow the administrator to veto the modifications. Just adding a ModifyTopicPolicy would make for awkwardness by having separate policies for creat