Sorry, this solved my questions: "Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error. Note that this retry is no different than if the client resent the record upon receiving the error. Allowing retries will potentially change the ordering of records because if two records are sent to a single partition, and the first fails and is retried but the second succeeds, then the second record may appear first."
2016-01-30 13:18 GMT+01:00 Franco Giacosa <fgiac...@gmail.com>: > Hi, > > The at-least-once delivery is generated in part by the network fails and > the retries (that may generate duplicates) right? > > In the event of a duplicated (there was an error but the first message > landed ok on the partition P1) the producer will recalculate the partition > on the retry? is this done automatically? > > If in the retry the partition doesn't change and there is only 1 Producer, > will the duplicated be written next to the original? I mean if I poll() > they will come one after the other? > > >