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

Add version to the store on local disk. #4950

Closed
Tracked by #4931
drmingdrmer opened this issue Apr 19, 2022 · 0 comments · Fixed by #11160
Closed
Tracked by #4931

Add version to the store on local disk. #4950

drmingdrmer opened this issue Apr 19, 2022 · 0 comments · Fixed by #11160
Labels
A-meta Area: databend meta serive

Comments

@drmingdrmer
Copy link
Member

No description provided.

@BohuTANG BohuTANG added the A-meta Area: databend meta serive label Apr 20, 2022
drmingdrmer added a commit to drmingdrmer/databend that referenced this issue Apr 21, 2023
Write a data header to the raft-store so that compatibility can be
asserted and dealt with. When starting up, if there is no data version,
a default one `V0` will be inserted.

The default version is `V0` which is also the working data version in
this commit.

`metactl --export` always export the data version in a `Header` record
at the first line.

`metactl --import` will check the data version at the first line.
If the version is present and is not `V0`, it will quit at once with an
error.

- Fix: databendlabs#4950
BohuTANG pushed a commit that referenced this issue Apr 21, 2023
* fix(meta-upgrade-09): revert mistakenly removed testing file meta-v23.txt

* feat(meta-service): write data version to local store

Write a data header to the raft-store so that compatibility can be
asserted and dealt with. When starting up, if there is no data version,
a default one `V0` will be inserted.

The default version is `V0` which is also the working data version in
this commit.

`metactl --export` always export the data version in a `Header` record
at the first line.

`metactl --import` will check the data version at the first line.
If the version is present and is not `V0`, it will quit at once with an
error.

- Fix: #4950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: databend meta serive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants