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

Ensure consistency of decide events #2221

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Ensure consistency of decide events #2221

merged 1 commit into from
Nov 1, 2024

Conversation

jbearer
Copy link
Member

@jbearer jbearer commented Oct 25, 2024

The logic for moving data from consensus storae to archive storage was sometimes generating an invalid decide event, because it made a chain of non-consecutive leaves originating from multiple separate events. This fixes the issue and prevents it from happening again by generating a separate decide event for each leaf in consensus storage.

Also adds a regression test.

@jbearer
Copy link
Member Author

jbearer commented Oct 25, 2024

Tested on a water node that was having this issue. Also deployed and tested on decaf

@jbearer jbearer force-pushed the jb/archival-decides branch from 66c3d9d to 1df8311 Compare November 1, 2024 17:41
Copy link
Contributor

@tbro tbro left a comment

Choose a reason for hiding this comment

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

Approving since it is unit test is included and has been tested elsewhere.

The logic for moving data from consensus storae to archive storage
was sometimes generating an invalid decide event, because it made a
chain of non-consecutive leaves originating from multiple separate
events. This fixes the issue and prevents it from happening again by
generating a separate decide event for each leaf in consensus storage.

Also adds a regression test.
@jbearer jbearer force-pushed the jb/archival-decides branch from 1df8311 to 34d641a Compare November 1, 2024 20:02
@jbearer jbearer merged commit 0abc1e9 into main Nov 1, 2024
17 checks passed
@jbearer jbearer deleted the jb/archival-decides branch November 1, 2024 21:09
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.

2 participants