Skip to content

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

Merged
etan-status merged 3 commits into
unstablefrom
dev/etan/cd-fillfinality
Nov 22, 2023
Merged

fix startup after BN exited between head and finalized blocks updates#5617
etan-status merged 3 commits into
unstablefrom
dev/etan/cd-fillfinality

Conversation

@etan-status

Copy link
Copy Markdown
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
@github-actions

github-actions Bot commented Nov 22, 2023

Copy link
Copy Markdown

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
@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