Re: out of order sequence number in exactly once streams

2017-10-04 Thread Ismael Juma
I suggest filing a JIRA with as much information as possible (logs, configs, code, etc.) so that we can try to reproduce it. Ismael On Wed, Oct 4, 2017 at 9:48 AM, Sameer Kumar wrote: > I am receiving this exception lot more frequently, also this occurs > generally at the start of starting the

Re: out of order sequence number in exactly once streams

2017-10-04 Thread Sameer Kumar
I am receiving this exception lot more frequently, also this occurs generally at the start of starting the streams app. I was also running 3 seperate instances of my streams app all with different state stores on 3 different machines. I am using Kafka 11.0.1. -Sameer. On Tue, Oct 3, 2017 at 12:0

Re: out of order sequence number in exactly once streams

2017-10-02 Thread Sameer Kumar
I had enabled eos through streams config and as explained in the documentation, I have not added anything else other than following config. streamsConfiguration.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG, StreamsConfig.EXACTLY_ONCE); As explained by you, I think producer idempotence and retr

Re: out of order sequence number in exactly once streams

2017-10-02 Thread Sameer Kumar
I had enabled eos through streams config. On Fri, Sep 29, 2017 at 11:12 PM, Matthias J. Sax wrote: > That's correct: If EOS is enabled, we enforce some producer configs: > > https://github.com/apache/kafka/blob/0.11.0.1/streams/ > src/main/java/org/apache/kafka/streams/StreamsConfig.java#L678-L

Re: out of order sequence number in exactly once streams

2017-09-29 Thread Matthias J. Sax
That's correct: If EOS is enabled, we enforce some producer configs: https://github.com/apache/kafka/blob/0.11.0.1/streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java#L678-L688 https://github.com/apache/kafka/blob/0.11.0.1/streams/src/main/java/org/apache/kafka/streams/StreamsConfig

Re: out of order sequence number in exactly once streams

2017-09-29 Thread Damian Guy
You can set ProducerConfig.RETRIES_CONFIG in your StreamsConfig, i.e, Properties props = new Properties(); props.put(ProducerConfig.RETRIES_CONFIG, Integer.MAX_VALUE); ... On Fri, 29 Sep 2017 at 13:17 Sameer Kumar wrote: > I guess once stream app are enabled exactly-once, producer idempotence g

Re: out of order sequence number in exactly once streams

2017-09-29 Thread Sameer Kumar
I guess once stream app are enabled exactly-once, producer idempotence get enabled by default and so do the retries. I guess producer retries are managed internally and not exposed through streamconfig. https://kafka.apache.org/0110/documentation/#streamsconfigs -Sameer. On Thu, Sep 28, 2017 at

Re: out of order sequence number in exactly once streams

2017-09-27 Thread Matthias J. Sax
An OutOfOrderSequenceException should only occur if a idempotent producer gets out of sync with the broker. If you set `enable.idempotence = true` on your producer, you might want to set `retries = Integer.MAX_VALUE`. -Matthias On 9/26/17 11:30 PM, Sameer Kumar wrote: > Hi,  > > I again received

out of order sequence number in exactly once streams

2017-09-26 Thread Sameer Kumar
Hi, I again received this exception while running my streams app. I am using Kafka 11.0.1. After restarting my app, this error got fixed. I guess this might be due to bad network. Any pointers. Any config wherein I can configure it for retries. Exception trace is attached. Regards, -Sameer. 201