Skip to content

Commit

Permalink
Merge branch 'main' into asof
Browse files Browse the repository at this point in the history
  • Loading branch information
zenus authored Jun 15, 2024
2 parents d812a8c + 1fcac8a commit a14018e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,24 @@ History versions that are not included in the above chart:
| [1.2.212, 1.2.479) | [0.9.41, 1.2.479) |
| [1.2.479, +∞) | [1.2.212, +∞) |

TODO: fix the above version when merged


- `1.2.53` Incompatible, rolling upgrade is allowed without snapshot transmitting.
Snapshot format changed thus during rolling upgrading,
it requires all node data to be up-to-date, ensure there is no need to replicate with snapshot.

- `1.2.163` Feature: gRPC API: `kv_read_v1()` is added. For stream reading.

- `1.2.212` Feature: raft API: `install_snapshot_v1()`. Compatible with old versions.
- `1.2.212` 2023-11-16 Feature: raft API: `install_snapshot_v1()`. Compatible with old versions.
Rolling upgrade is supported.
In this version, databend-meta raft-server introduced a new API `install_snapshot_v1()`.
The raft-client will try to use either this new API or the original `install_snapshot()`.

- `1.2.479` Remove: `install_snapshot()`(v0) from client and server.
- `1.2.479` 2024-05-21 Remove: `install_snapshot()`(v0) from client and server.
The `install_snapshot_v1()` is the only API to install snapshot, and becomes **REQUIRED** for the client.

- `1.2.528` 2024-06-13 Remove on-disk data version `V001`. The first version using `V002` is `1.2.53`, 2023-08-08.
Therefore, since `1.2.528`, the oldest compatible version is `1.2.53`.
Consequently, compatibility remains unchanged from this version onward.


## Compatibility of databend-meta on-disk data
Expand Down
6 changes: 2 additions & 4 deletions src/meta/raft-store/src/ondisk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ impl OnDisk {
unreachable!("Upgrading to V0 is not supported");
}
DataVersion::V001 => {
// TODO: fix version and date when merged.
unreachable!("Upgrading to V001 is not supported since 2024-06-12, 1.2.*");
unreachable!("Upgrading to V001 is not supported since 2024-06-13, 1.2.528");
}
DataVersion::V002 => {
let snapshot_store =
Expand Down Expand Up @@ -188,9 +187,8 @@ impl OnDisk {
)
}
DataVersion::V001 => {
// TODO: fix version and date when merged
unreachable!(
"{} is no longer supported, since 2024-06-12, 1.2.*",
"{} is no longer supported, since 2024-06-13, 1.2.528",
self.header.version
)
}
Expand Down

0 comments on commit a14018e

Please sign in to comment.