You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Async acks: pending ack is dropped when the error handler resubmits retained records #4879
With asyncAcks=true and an error handler that retains records (DefaultErrorHandler.setSeekAfterError(false)), doPoll() resubmits the retained records and captureOffsets() replaces the offset lists of the whole batch. An ack still pending for a record of another partition from the same poll then fails the identity check from GH-4687 and is ignored as an obsolete batch.
Reproduction: one poll returns foo-0:[a1] and foo-1:[b1, b2]. The listener keeps the Acknowledgment of a1, throws once on b1 and acks the rest. Acking a1 afterwards should commit foo-0 offset 1, but nothing is committed, so a1 is redelivered after a rebalance or restart.
I have a fix with a test on a branch and can open a PR.
Activity
spring-projectsGH-4879: Keep async acks for resubmitted records
GH-4879: Keep async acks for resubmitted records (#4880)
GH-4879: Keep async acks for resubmitted records (#4880)
GH-4879: Keep async acks for resubmitted records (#4880)