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

Make flat storage creator compatible with state sync #8250

Closed
Longarithm opened this issue Dec 20, 2022 · 1 comment
Closed

Make flat storage creator compatible with state sync #8250

Longarithm opened this issue Dec 20, 2022 · 1 comment

Comments

@Longarithm
Copy link
Member

Longarithm commented Dec 20, 2022

If background flat storage creation was triggered, and at some point node fell behind and started state sync, then DB most likely will be corrupted. We need to interrupt the node and display message recommending to start a node from new dump which should already contain flat storage data.

We can add a boolean argument require_flat_storage_ready for update_flat_storage_for_block so that if it is true, update_flat_storage_for_block will require the flat storage to be ready.

@Longarithm
Copy link
Member Author

Implemented during new resharding implementation in 2024 Q1-Q2.

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

No branches or pull requests

1 participant