BothLeaderNotAvailableExceptionandNotEnoughReplicasExceptionare subclasses of RetriableException, which representstransient issuesthat may succeed upon retry.
FromApache Kafka Java Client Documentation:
“RetriableException indicates that the request can be retried. This includes network errors and certain broker-side failures like leader not available or not enough replicas.”
RecordTooLargeException and AuthorizationException arenon-retriablebecause they represent client misconfigurations or access issues.
[Reference:Kafka Error Handling Guide > Retriable vs. Non-Retriable Exceptions, ============]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit