Thanks for the KIP Boyang! Overall, categorizing exceptions makes a lot of sense. As I don't know the producer internals well enough, I cannot comment on the categorization in detail though.
What I am wondering is, if we should introduce an exception interface that non-fatal exception would implement instead of creating a new class that will wrap non-fatal exceptions? What would be the pros/cons for both designs? -Matthias On 12/2/20 11:35 AM, Boyang Chen wrote: > Hey there, > > I would like to start a discussion thread for KIP-691: > https://cwiki.apache.org/confluence/display/KAFKA/KIP-691%3A+Enhance+Transactional+Producer+Exception+Handling > > The KIP is aiming to simplify the exception handling logic for > transactional Producer users by classifying fatal and non-fatal exceptions > and throw them correspondingly for easier catch and retry. Let me know what > you think. > > Best, > Boyang >