Skip to content

Commit

Permalink
Merge pull request databendlabs#9489 from drmingdrmer/45-demo-rewrite…
Browse files Browse the repository at this point in the history
…-meta

feat(meta/upgrade): meta data upgrade program
  • Loading branch information
drmingdrmer authored Jan 16, 2023
2 parents c7559b2 + f179396 commit 1905aa5
Show file tree
Hide file tree
Showing 17 changed files with 832 additions and 14 deletions.
25 changes: 25 additions & 0 deletions .github/actions/test_meta-upgrade-2023-01-15/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Test meta-upgrade-2023-01-15"
description: ""
inputs:
profile:
description: "The profile for this test"
required: true
default: "debug"
target:
description: ""
required: true
default: "x86_64-unknown-linux-gnu"
runs:
using: "composite"
steps:
- name: Download artifact
uses: ./.github/actions/artifact_download
with:
profile: ${{ inputs.profile }}
sha: ${{ github.sha }}
target: ${{ inputs.target }}

- name: Test meta-upgrade-2023-01-15
shell: bash
run: |
bash ./tests/meta-upgrade-2023-01-15/test-meta-upgrade-to-24.sh
8 changes: 8 additions & 0 deletions .github/workflows/dev-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_metactl

test_meta-upgrade-2023-01-15:
timeout-minutes: 10
runs-on: [self-hosted, X64, Linux, development]
needs: build_gnu
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_meta-upgrade-2023-01-15

test_compat:
timeout-minutes: 10
runs-on: [self-hosted, X64, Linux, development]
Expand Down
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ edition = "2021"
members = [
# Binaries
"src/binaries",
"src/binaries/meta-upgrade-2023-01-15",
# Common
"src/common/arrow",
"src/common/auth",
Expand Down
34 changes: 34 additions & 0 deletions src/binaries/meta-upgrade-2023-01-15/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "databend-meta-upgrade-2022-01-15"
description = "upgrade meta-service data to VER=24"
version = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
publish = { workspace = true }
edition = { workspace = true }

[dependencies]
# Workspace dependencies
common-meta-api = { path = "../../meta/api" }
common-meta-app = { path = "../../meta/app" }
common-meta-raft-store = { path = "../../meta/raft-store" }
common-meta-sled-store = { path = "../../meta/sled-store" }
common-meta-types = { path = "../../meta/types" }
common-proto-conv = { path = "../../meta/proto-conv" }
common-protos = { path = "../../meta/protos" }
common-tracing = { path = "../../common/tracing" }

# Crates.io dependencies
anyhow = { workspace = true }
clap = { workspace = true }
openraft = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { version = "1.21.1", features = ["full"] }
tracing = "0.1.36"

[[bin]]
name = "databend-meta-upgrade-2023-01-15"
path = "src/main.rs"
doctest = false
test = false
Loading

0 comments on commit 1905aa5

Please sign in to comment.