Skip to content

ack-mode = MANUAL_IMMEDIATE, enable.auto.commit = false and @RetryableTopic not working as expected #2495

Answered by garyrussell
texhnolyzze asked this question in Q&A
Discussion options

You must be logged in to vote

Also I should note, that if I comment out @RetryableTopic -- everything works as expected and listener does not process okRequest.

That's the part that doesn't make any sense to me.

Receiving okRequest after badRequest is exactly what I would expect.

Kafka maintains 2 pointers, the current position and the committed offset.

When the poll returns badrequest, the position is updated to 1 (assuming max.poll.records=1.

Whether or not the offset was committed, the next record returned will be the one at offset 1 (assuming max.poll.records=1 - otherwise the okRequest would likely have been returned by the first poll, and the position would have been updated to 2, the container simply passing …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@texhnolyzze
Comment options

@texhnolyzze
Comment options

@garyrussell
Comment options

@texhnolyzze
Comment options

Answer selected by texhnolyzze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants