Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-16 Thread Xavier Léauté
Hi, Given the lack of any further comments or new votes, I'm assuming everyone who already voted is still in agreement and I will close the vote. The vote passed with 3 binding +1 votes (Guozhang, Sriram, Jason) and 2 non-binding +1 votes (Bill, Eno) Thank you, Xavier On Fri, May 12, 2017 at 9:

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-12 Thread Guozhang Wang
Thanks for the note Michael, I think it makes sense. And thinking about it more, I also agree that even for single-key fetch on ReadOnlyWindow/SessionStore it's better to return the Iterator, V> even when the windowed key's key field would always be the same, as it is more consistent with the adde

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-11 Thread Xavier Léauté
Thanks Michal, you are correct. I can see your point now, and I can get behind returning Windowed as well for windowed stores. It might make sense to revisit the single key iterator in the future and do the same for consistency, but I'd rather not break backwards compatibility unless we have a goo

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-11 Thread Michal Borowiecki
Also, wrt In the case of the window store, the "key" of the single-key iterator is the actual timestamp of the underlying entry, not just range of the window, so if we were to wrap the result key a window we wouldn't be getting back the equivalent of the single key iterator. I believe the tim

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Michal Borowiecki
Well, another concern, apart from potential confusion, is that you won't be able to peek the actual next key, just the timestamp. So the tradeoff is between having consistency in return types versus consistency in having the ability to know the next key without moving the iterator. To me the lat

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Eno Thereska
+1 Thanks Eno > On 10 May 2017, at 20:25, Michal Borowiecki > wrote: > > Apologies, I missed the discussion (or lack thereof) about the return type of: > > WindowStoreIterator> fetch(K from, K to, long timeFrom, long > timeTo) > > > WindowStoreIterator (as the KIP mentions) is a subclass o

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Jason Gustafson
+1 On Wed, May 10, 2017 at 1:45 PM, Xavier Léauté wrote: > Thank you for the feedback Michal. > > While I agree the return may be a little bit more confusing to reason > about, the reason for doing so was to keep the range query interfaces > consistent with their single-key counterparts. > > In

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Xavier Léauté
Thank you for the feedback Michal. While I agree the return may be a little bit more confusing to reason about, the reason for doing so was to keep the range query interfaces consistent with their single-key counterparts. In the case of the window store, the "key" of the single-key iterator is th

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Michal Borowiecki
Apologies, I missed the discussion (or lack thereof) about the return type of: WindowStoreIterator> fetch(K from, K to, long timeFrom, long timeTo) WindowStoreIterator (as the KIP mentions) is a subclass of KeyValueIterator KeyValueIterator has the following method: /** * Peek at the nex

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Sriram Subramanian
+1 On Wed, May 10, 2017 at 11:42 AM, Bill Bejeck wrote: > +1 > > Thanks, > Bill > > On Wed, May 10, 2017 at 2:38 PM, Guozhang Wang wrote: > > > +1. Thank you! > > > > On Wed, May 10, 2017 at 11:30 AM, Xavier Léauté > > wrote: > > > > > Hi everyone, > > > > > > Since there aren't any objections

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Bill Bejeck
+1 Thanks, Bill On Wed, May 10, 2017 at 2:38 PM, Guozhang Wang wrote: > +1. Thank you! > > On Wed, May 10, 2017 at 11:30 AM, Xavier Léauté > wrote: > > > Hi everyone, > > > > Since there aren't any objections to this addition, I would like to start > > the voting on KIP-155 so we can hopefully

Re: [VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Guozhang Wang
+1. Thank you! On Wed, May 10, 2017 at 11:30 AM, Xavier Léauté wrote: > Hi everyone, > > Since there aren't any objections to this addition, I would like to start > the voting on KIP-155 so we can hopefully get this into 0.11. > > https://cwiki.apache.org/confluence/display/KAFKA/KIP+ > 155+-+Ad

[VOTE] KIP-155 Add range scan for windowed state stores

2017-05-10 Thread Xavier Léauté
Hi everyone, Since there aren't any objections to this addition, I would like to start the voting on KIP-155 so we can hopefully get this into 0.11. https://cwiki.apache.org/confluence/display/KAFKA/KIP+155+-+Add+range+scan+for+windowed+state+stores Voting will stay active for at least 72 hours.