feat: rename replay_timeout_secs to timeout_secs (#191)

* feat: add `flush_timeout_secs` to `MigrateRegionRequest`

* chore: use `timeout_secs`

* feat: introduce `DowngradingLeader`
This commit is contained in:
Weny Xu
2024-10-17 13:13:26 +08:00
committed by GitHub
parent 796ce9b003
commit b4d301184e
10 changed files with 191 additions and 156 deletions
+4
View File
@@ -54,6 +54,10 @@ enum RegionRole {
Leader = 0;
// Readonly region.
Follower = 1;
// A downgrading region, which is in the process of downgrading from Leader to Follower.
//
// This role is used to prevent the region from being written during the downgrade process.
DowngradingLeader = 2;
}
message NodeInfo {
+1 -1
View File
@@ -25,7 +25,7 @@ message MigrateRegionRequest {
uint64 region_id = 3;
uint64 from_peer = 4;
uint64 to_peer = 5;
uint32 replay_timeout_secs = 6;
uint32 timeout_secs = 6;
}
message MigrateRegionResponse {