Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sink: fix sequence number overflow during draining #227

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

ladislavmacoun
Copy link
Contributor

This patch is a follow-up to the 27880b4 which adds wrapping for sequence number while creating a new produce request.

This patch adds checking for possible integer overflow for the batch0Seq, which could be assigned to the recBuf.seq during the resetBatchDrainIdx() which could cause INVALID_RECORD error.

Fixes #226

Signed-off-by: Ladislav Macoun [email protected]

This patch is a follow-up to the 27880b4 which adds wrapping for sequence
number while creating a new produce request.

This patch adds checking for possible integer overflow for the
batch0Seq, which could be assigned to the recBuf.seq during the
resetBatchDrainIdx() which could cause INVALID_RECORD error.

Signed-off-by: Ladislav Macoun <[email protected]>
@twmb
Copy link
Owner

twmb commented Oct 19, 2022

🤦 good find, I aim to release this today. Technically I should have a v1.8.1, but I'd like to roll this into 1.9 so I don't have to back out of a few changes already merged (and don't have to have another branch lingering forever like v1.1.x which I may delete in one or two years..)

@twmb twmb merged commit b2aec9c into twmb:master Oct 19, 2022
@twmb
Copy link
Owner

twmb commented Oct 20, 2022

This has been released in v1.9, thank you!

@ladislavmacoun
Copy link
Contributor Author

Happy to help, and thank you for such a quick response 😊

@ladislavmacoun ladislavmacoun deleted the fix-sequence-overflow branch October 20, 2022 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indempotent producer received INVALID_RECORD error caused by invalid sequence number
2 participants