jolshan commented on PR #13796:
URL: https://github.com/apache/kafka/pull/13796#issuecomment-1590186665

   With respect to the retries. There is currently a known error where if we 
produce using an idempotent producer we can get stuck in a retry loop.
   
   1. Request A with sequence 0 fails with a retriable error
   2. Request B with sequence 1 succeeds. Because we currently don't assert the 
sequence is 0 on the first records written (or any records written when we 
don't yet have producer state, this will succeed)
   3. Request A will be retried and will always fail with a retriable 
OutOfOrderSequence error.
   
   Imagine at step 2, we have a request C that fails with a non-retriable 
error. Will we get stuck waiting for Request A until the retries run out? The 
default is pretty high so this will go on for some time.
   
   BTW this issue is https://issues.apache.org/jira/browse/KAFKA-14359, and we 
are still considering the best way to fix it.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to