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

[FIXED] Seqset encode bug that could cause bad stream state snapshots #4348

Merged
merged 6 commits into from Jul 30, 2023

Conversation

derekcollison
Copy link
Member

This would cause decode to spin and lock up the server.

This fixes the encode bug (a delete and clear node bug in avl/seqset). Also addressed receiving a bad snapshot, etc.

…nodes we would not redo heights and balances.

This caused a rotate operation to possibly return nil and replace our root with nil when non empty.

Signed-off-by: Derek Collison <derek@nats.io>
…seqset.

Added in another pedantic test on stream state encoding and decoding.

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
…nd return proper error.

Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
@derekcollison derekcollison requested a review from a team as a code owner July 30, 2023 19:25
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit fd83dfe into dev Jul 30, 2023
2 checks passed
@derekcollison derekcollison deleted the seqset-encode-bug branch July 30, 2023 20: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.

None yet

2 participants