Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-10-13 Thread Jorge Esteban Quilcate Otoya
Thanks Matthias. I have updated the KIP according to this and take KAFKA-6058. We will use `KafkaConsumer` instead of reusing `ConsumerGroupCommand` and keep `StreamsResetter` in `core` until `KAFKA-6058 is fixed. Just as a reminder, [VOTE] thread is already open if there are no more feedback on

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-10-12 Thread Matthias J. Sax
Jorge, thanks for the update. I would suggest to not reuse `ConsumerGroupCommand` and re implement what we need in `StreamsResetter` directly. Even if we need to keep `StreamsResetter` in `core` for now, I think we should not introduce new dependencies. Currently, we still use old

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-10-09 Thread Jorge Esteban Quilcate Otoya
Matthias, Thanks for the heads up! I think the main dependency is from `StreamResseter` to `ConsumerGroupCommand` class to actually reuse `#reset-offsets` functionality. Not sure what would be the better way to remove it. To expose commands (e.g. `ConsumerGroupCommand`) as part of AdminClient,

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-10-05 Thread Matthias J. Sax
Jorge, KIP-198 (that got merged already) overlaps with this KIP. Can you please update your KIP accordingly? Also, while working on KIP-198, we identified some shortcomings in AdminClient that do not allow us to move StreamsResetter our of core package. We want to address those shortcoming in

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-09-11 Thread Jorge Esteban Quilcate Otoya
Thanks Guozhang! I have updated the KIP to: 1. Only one scenario param is allowed. If none, `to-earliest` will be used, behaving as the current version. 2. 1. An exception will be printed mentioning that there is no existing offsets registered. 2. inputTopics format could support define

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-08-29 Thread Guozhang Wang
Hi Jorge, Thanks for the KIP. It would be a great to add feature to the reset tools. I made a pass over it and it looks good to me overall. I have a few comments: 1. For all the scenarios, do we allow users to specify more than one parameters? If not could you make that clear in the wiki, e.g.

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-08-22 Thread Matthias J. Sax
Thanks for the update Jorge. I don't have any further comments. -Matthias On 8/12/17 6:43 PM, Jorge Esteban Quilcate Otoya wrote: > I have updated the KIP: > > - Change execution parameters, using `--dry-run` > - Reference KAFKA-4327 > - And advise about changes on `StreamResetter` > > Also

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-08-12 Thread Jorge Esteban Quilcate Otoya
I have updated the KIP: - Change execution parameters, using `--dry-run` - Reference KAFKA-4327 - And advise about changes on `StreamResetter` Also includes that it will cover a change on `ConsumerGroupCommand` to align execution options. El dom., 16 jul. 2017 a las 5:37, Matthias J. Sax

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-07-15 Thread Matthias J. Sax
Thanks a lot for the update! I like the KIP! One more question about `--dry-run` vs `--execute`: While I agree that we should use the same flag for both tools, I am not sure which one is the better one... My personal take is, that I like `--dry-run` better. Not sure what others think. One more

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-07-14 Thread Jorge Esteban Quilcate Otoya
Hi, KIP is updated. Changes: 1. Approach discussed to keep both tools (streams application resetter and consumer group reset offset). 2. Options has been aligned between both tools. 3. Zookeeper option from streams-application-resetted will be removed, and replaced internally for Kafka

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-29 Thread Matthias J. Sax
Damian, > resets everything and clears up >> the state stores. That's not correct. The reset tool does not touch local store. For this, we have `KafkaStreams#clenup` -- otherwise, you would need to run the tool in every machine you run an application instance. With regard to state, the tool

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-29 Thread Damian Guy
Hi, Thanks for the KIP. What is not clear is how is this going to handle state stores? Right now the streams reset tool, resets everything and clears up the state stores. What are we going to do if we reset to a particular offset? If we clear the state then we've lost any previously aggregated

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-29 Thread Jorge Esteban Quilcate Otoya
You're right, I was not considering Zookeeper dependency. I'm starting to like the idea to wrap `reset-offset` from `streams-application-reset`. I will wait a bit for more feedback and work on a draft with this changes. El miƩ., 28 jun. 2017 a las 0:20, Matthias J. Sax

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-27 Thread Matthias J. Sax
I agree, that we should not duplicate functionality. However, I am worried, that a non-streams users using the offset reset tool might delete topics unintentionally (even if the changes are pretty small). Also, currently the stream reset tool required Zookeeper while the offset reset tool does

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-27 Thread Jorge Esteban Quilcate Otoya
Thanks for the feedback Matthias! The main idea is to use only 1 tool to reset offsets and don't replicate functionality between tools. Reset Offset (KIP-122) tool not only reset but support execute the reset but also export, import from files, etc. If we extend the current tool

Re: [DISCUSS] KIP-171: Extend Consumer Group Reset Offset for Stream Application

2017-06-26 Thread Matthias J. Sax
Jorge, thanks a lot for this KIP. Allowing the reset streams applications with arbitrary start offset is something we got multiple requests already. Couple of clarification question: - why do you want to deprecate the current tool instead of extending the current tool with the stuff the offset