-
Notifications
You must be signed in to change notification settings - Fork 775
feat(meta/upgrade): meta data upgrade program #9489
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
feat(meta/upgrade): meta data upgrade program #9489
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
can we merge the binary into |
This program is not meant to be used after the upgrade is done. If, in the future, there is another data format upgrade there should be another standalone program. Putting all of these functions into one program is clumsy. And this program depends on a former version of databend, which will increase building time of metactl. |
d2590ee
to
7a5b2c7
Compare
If so, how about changing the name to |
7a5b2c7
to
3e44e13
Compare
213fce7
to
e3730a6
Compare
e3730a6
to
98b4405
Compare
**What it does**: This program load meta-service data from a `raft-dir` and upgrade TableMeta to new version and write them back. Both in raft-log data and in state-machine data will be converted. Usage: - Shut down databend-meta - Backup the data: https://databend.rs/doc/deploy/metasrv/metasrv-backup-restore - Build it with `cargo build --bin databend-meta-upgrade-2023-01-15` and run it: ```text databend-meta-upgrade-2023-01-15 --cmd upgrade --raft-dir "<./your/raft-dir/>" ```
98b4405
to
f179396
Compare
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
feat(meta-upgrade): meta data upgrade program
What it does:
This program load meta-service data from a
raft-dir
and upgrade TableMeta to new version and write them back.Both in raft-log data and in state-machine data will be converted.
Usage:
cargo build --bin databend-meta-upgrade-2023-01-15
and run it:Changelog
Related Issues