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

Support simple versioning for the metabase #1483

Closed
Tracked by #1398
fyrchik opened this issue Jun 6, 2022 · 0 comments · Fixed by #1521
Closed
Tracked by #1398

Support simple versioning for the metabase #1483

fyrchik opened this issue Jun 6, 2022 · 0 comments · Fixed by #1521
Assignees
Milestone

Comments

@fyrchik
Copy link
Contributor

fyrchik commented Jun 6, 2022

Store storage version in the metabase itself.
If metabase format has changed (like in the recent case with GCMarks), node should fail to start.
The update should be done via resync_metabase config option.

aprasolova pushed a commit to aprasolova/neofs-node that referenced this issue Oct 19, 2022
The main problem is to distinguish the case of initial initialization
and update from version 0. We can't do this at `Open`, because of
`resync_metabase` flag. Thus, the following approach was taken:
1. During `Open` check whether the metabase was initialized.
2. Check for the version in `Init` or write the new one if the metabase
   is new.
3. Update version in `Reset`.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
aprasolova pushed a commit to aprasolova/neofs-node that referenced this issue Oct 19, 2022
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
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 a pull request may close this issue.

1 participant