dongnuo123 opened a new pull request, #24114:
URL: https://github.com/apache/kafka/pull/24114
`TransactionMarkerRequestCompletionHandler.onComplete` processed all entries
of a WriteTxnMarkers response in one loop with no per entry error handling. An
exception from one entry left the loop and every later entry in the same
response was skipped. Those transactions had their markers written but never
acknowledged, so they stayed in PrepareCommit until the __transaction_state
partition was reloaded.
Each entry is now handled in its own try/catch. A failure is logged with the
transactional id and marker, and the loop moves on to the remaining entries.
After the loop the first exception is rethrown, with any later ones attached as
suppressed exceptions.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]