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

fix startup after BN exited between head and finalized blocks updates #5617

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

etan-status
Copy link
Contributor

When the BN exits after writing new head to database, but before completing the updateFinalizedBlocks call, the database is slightly inconsistent due to the partial write. We currently fail to start up after that. Fix that by catching up on partial updateFinalizedBlocks tasks on start up, and add a test for this edge case.

When the BN exits after writing new `head` to database, but before
completing the `updateFinalizedBlocks` call, the database is slightly
inconsistent due to the partial write. We currently fail to start up
after that. Fix that by catching up on partial `updateFinalizedBlocks`
tasks on start up, and add a test for this edge case.
@etan-status etan-status enabled auto-merge (squash) November 22, 2023 15:59
Copy link

github-actions bot commented Nov 22, 2023

Unit Test Results

         9 files    1 098 suites   27m 28s ⏱️
  3 952 tests   3 605 ✔️ 347 💤 0
16 069 runs  15 671 ✔️ 398 💤 0

Results for commit f12246f.

♻️ This comment has been updated with latest results.

@etan-status etan-status merged commit 8cea8af into unstable Nov 22, 2023
8 checks passed
@etan-status etan-status deleted the dev/etan/cd-fillfinality branch November 22, 2023 23:44
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.

1 participant