fvaleri opened a new pull request, #15561:
URL: https://github.com/apache/kafka/pull/15561

   In the initial EOS example, a retry logic was implemented within the 
`resetToLastCommittedPositions` method. During refactoring, this logic was 
removed becasue a poison pill prevented the example from reaching the final 
phase of consuming from the output topic.
   
   In this change, I suggest to add it back, but with a retry limit defined as 
`MAX_RETRIES`. Once this limit is reached, the problematic batch will be logged 
and skipped, allowing the processor to move on and process remaining records. 
If some records are skipped, the example will still hit the hard timeout (2 
minutes), but after consuming all processed records.
   


-- 
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