diff --git a/src/meta/README.md b/src/meta/README.md index 03674ed0c366..2140f7bc8990 100644 --- a/src/meta/README.md +++ b/src/meta/README.md @@ -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. @@ -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 @@ -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 | diff --git a/src/meta/raft-store/src/ondisk/data_version.rs b/src/meta/raft-store/src/ondisk/data_version.rs index 6ffd92c2a9c7..f8e068e6efc9 100644 --- a/src/meta/raft-store/src/ondisk/data_version.rs +++ b/src/meta/raft-store/src/ondisk/data_version.rs @@ -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)"), } } } diff --git a/src/meta/raft-store/src/ondisk/version_info.rs b/src/meta/raft-store/src/ondisk/version_info.rs index d9bdecf28473..e39a355bf90a 100644 --- a/src/meta/raft-store/src/ondisk/version_info.rs +++ b/src/meta/raft-store/src/ondisk/version_info.rs @@ -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", ) }