Skip to content

[rust] Stale out-of-order responses can incorrectly reset the idempotent writer - #4252

Open
naivedogger wants to merge 2 commits into
apache:mainfrom
naivedogger:bugfix/issue-4238-stale-out-of-order
Open

[rust] Stale out-of-order responses can incorrectly reset the idempotent writer#4252
naivedogger wants to merge 2 commits into
apache:mainfrom
naivedogger:bugfix/issue-4238-stale-out-of-order

Conversation

@naivedogger

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #4238

Brief change log

Tests

API and Format

Documentation

Track each batch's last acknowledged sequence at send time and refresh it on every attempt. Retry out-of-order responses when acknowledgement progress has advanced, while preserving genuine-error resets.

Add Sender regression tests for stale responses, genuine errors, and snapshot refresh on retry, following the Java fix in apache#4125.

Fixes apache#4238
@naivedogger

naivedogger commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@platinumhamburg @loserwang1024 could you please take a look when convenient? Thanks!

@platinumhamburg platinumhamburg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1.

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.

[rust] Stale out-of-order responses can incorrectly reset the idempotent writer

2 participants