Skip to content

go/worker/storage/committee: Fix Stuck Storage Finalization#6239

Merged
martintomazic merged 4 commits intomasterfrom
martin/bugfix/storage-sync
Jun 27, 2025
Merged

go/worker/storage/committee: Fix Stuck Storage Finalization#6239
martintomazic merged 4 commits intomasterfrom
martin/bugfix/storage-sync

Conversation

@martintomazic
Copy link
Contributor

Closes #6238

@netlify
Copy link

netlify bot commented Jun 24, 2025

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 9ea6450
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/685e907e0dcd410008b58451

@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch from 94bae20 to ad1b003 Compare June 24, 2025 10:25
@martintomazic martintomazic marked this pull request as ready for review June 24, 2025 10:33
@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch 2 times, most recently from bd73007 to 335554a Compare June 26, 2025 08:36
Copy link
Contributor Author

@martintomazic martintomazic left a comment

Choose a reason for hiding this comment

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

Did a bit of refactor as going through the code. Happy to revert if you think it does not simplify.

Not really sure how to reproduce it/how we want to test this? e2e would probably require at least maxPendingVersions of blocks to trigger this (slow?).

@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch from 335554a to f27d35f Compare June 26, 2025 10:27
@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch from f27d35f to 7a589c8 Compare June 26, 2025 21:27
@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch 2 times, most recently from b2629e7 to d8802d7 Compare June 27, 2025 12:05
@codecov
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 82.92683% with 14 lines in your changes missing coverage. Please review.

Project coverage is 64.17%. Comparing base (2a280ab) to head (d8802d7).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
go/worker/storage/committee/node.go 85.00% 9 Missing and 3 partials ⚠️
go/storage/mkvs/db/pathbadger/metadata.go 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6239      +/-   ##
==========================================
- Coverage   64.68%   64.17%   -0.51%     
==========================================
  Files         678      678              
  Lines       65934    65938       +4     
==========================================
- Hits        42648    42319     -329     
- Misses      18388    18705     +317     
- Partials     4898     4914      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@martintomazic martintomazic force-pushed the martin/bugfix/storage-sync branch from d8802d7 to 9ea6450 Compare June 27, 2025 12:37
@martintomazic martintomazic merged commit d77106c into master Jun 27, 2025
5 checks passed
@martintomazic martintomazic deleted the martin/bugfix/storage-sync branch June 27, 2025 14:05
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.

go/worker/storage: Full apply queue can prevent storage finalization

2 participants