Skip to content

Commit

Permalink
chore: update meta-service version info and compatibility doc (databe…
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer authored Nov 10, 2024
1 parent 3d76dc6 commit ce75153
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 7 additions & 1 deletion src/meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ History versions that are not included in the above chart:
|:--------------------|:-------------------------|
| [0.9.41, 1.2.212) | [0.9.41, 1.2.212) |
| [1.2.212, 1.2.479) | [0.9.41, 1.2.479) |
| [1.2.479, +∞) | [1.2.288, +∞) |
| [1.2.479, 1.2.655) | [1.2.288, 1.2.655) |
| [1.2.655, +∞) | [1.2.288, +∞) |


- `1.2.53` Incompatible, rolling upgrade is allowed without snapshot transmitting.
Expand All @@ -123,6 +124,9 @@ History versions that are not included in the above chart:

- `1.2.552` 2024-07-02 Introduce on-disk `V003`, using `rotbl` format snapshot,
which is compatible with `V002`. The oldest compatible version is `1.2.288`(`1.2.212~1.2.287` are removed).

- `1.2.655` 2024-11-11 Introduce on-disk `V004`, using WAL based Raft log storage,
which is compatible with `V002`. The oldest compatible version is `1.2.288`(`1.2.212~1.2.287` are removed).


## Compatibility of databend-meta on-disk data
Expand All @@ -131,6 +135,8 @@ The on-disk data of Databend-meta evolves over time while maintaining backward c

| DataVersion | Databend-version | Min Compatible with |
|:------------|:-----------------|:--------------------|
| V004 | 1.2.655 | V002 |
| V003 | 1.2.547 | V002 |
| V002 | 1.2.53 | V001 |
| V001 | 1.1.40 | V0 |

Expand Down
3 changes: 1 addition & 2 deletions src/meta/raft-store/src/ondisk/data_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ impl fmt::Debug for DataVersion {
),
Self::V002 => write!(f, "V002(2023-07-22: Store snapshot in a file)"),
Self::V003 => write!(f, "V003(2024-06-27: Store snapshot in rotbl)"),
// TODO(raft-log): udpate the date when merged.
Self::V004 => write!(f, "V004(2024-11-04: WAL based raft-log)"),
Self::V004 => write!(f, "V004(2024-11-11: WAL based raft-log)"),
}
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/meta/raft-store/src/ondisk/version_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ impl VersionInfo {
}

const fn v004() -> Self {
// TODO(raft-log): update these values when merged.
Self::new(
"3694e259c8e7c227fadfac5faa881cd2f2af6bbe",
"2024-11-04",
new_semver(1, 2, 53),
"3d76dc68e79db72341c6006808a6e1773ab8b565",
"2024-11-11",
new_semver(1, 2, 655),
"WAL based raft-log",
)
}
Expand Down

0 comments on commit ce75153

Please sign in to comment.