You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Gary Struthers <ag...@earthlink.net> on 2017/07/03 01:28:34 UTC
enable.idempotence=true and Retriable exceptions
I currently catch and retry Retriable exceptions. The v11 docs say if enable.idempotence=true than my application shouldn’t retry if these exceptions are thrown because my retries wouldn’t be idempotent. Am I supposed to ignore these exceptions now? I use the Java driver.
Gary
Re: enable.idempotence=true and Retriable exceptions
Posted by "Matthias J. Sax" <ma...@confluent.io>.
I you set `enable.idempotence=true`, the producer will retry internally.
Thus, it should never throw an retriable exception in the first place
(so there is nothing to ignore :)).
-Matthias
On 7/2/17 6:28 PM, Gary Struthers wrote:
> I currently catch and retry Retriable exceptions. The v11 docs say if enable.idempotence=true than my application shouldn’t retry if these exceptions are thrown because my retries wouldn’t be idempotent. Am I supposed to ignore these exceptions now? I use the Java driver.
>
> Gary
>