Skip to content

Fix missing sequence numbers on request timeout/termination#200

Merged
einarmo merged 1 commit intomasterfrom
fix-sequence-number-invalid
Feb 13, 2026
Merged

Fix missing sequence numbers on request timeout/termination#200
einarmo merged 1 commit intomasterfrom
fix-sequence-number-invalid

Conversation

@einarmo
Copy link
Contributor

@einarmo einarmo commented Feb 13, 2026

If a request is terminated early, we remove it from the message state. This causes problems, because we only incremented the sequence numbers later. We should really be consuming these early. The current setup was a little weird to begin with, I think this is much cleaner and tidier.

This might fix #125. At the very least it does fix a bug that would look like #125.

@einarmo einarmo mentioned this pull request Feb 13, 2026
If a request is terminated, we remove it from the message state. This
causes problems, because we only incremented the sequence numbers
_later_. We should really be consuming these early. The current setup
was a little weird to begin with, I think this is much cleaner and
tidier.
@einarmo einarmo force-pushed the fix-sequence-number-invalid branch from 9c7b0ed to 137867c Compare February 13, 2026 07:47
@einarmo einarmo requested a review from svanharmelen February 13, 2026 07:53
)
.await
.unwrap();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test does fail without the fix, so there is a bug here.

Copy link
Contributor

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

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

Nice one 👍🏻

@einarmo einarmo merged commit 72d231e into master Feb 13, 2026
6 checks passed
@einarmo einarmo deleted the fix-sequence-number-invalid branch February 13, 2026 08:08
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.

BadSequenceNumberInvalid

2 participants