fix: used to sync log to leader's commit which lags behind applied
This used to cause flakyness of test_bucket_rebalancing_respects_replication_factor like this: - governor proposes entry at index N with weight updates, and waits till it's applied - commit index is not updated yet, but governor calls rpc::sharding to update the weights in the vshard subsystem on instances and passes the lagging commit index for syncing - peers sync up to the lagging commit index and then reconfigure vshard to the outdated weights - governor thinks everything is in order and waits for updates - the test fails because buckets don't get rebalanced to the storages with weights set to 0
Showing
- src/governor/mod.rs 4 additions, 4 deletionssrc/governor/mod.rs
- src/governor/plan.rs 10 additions, 10 deletionssrc/governor/plan.rs
- src/traft/node.rs 1 addition, 0 deletionssrc/traft/node.rs
- src/traft/rpc/migration.rs 2 additions, 2 deletionssrc/traft/rpc/migration.rs
- src/traft/rpc/replication.rs 4 additions, 4 deletionssrc/traft/rpc/replication.rs
- src/traft/rpc/sharding.rs 4 additions, 4 deletionssrc/traft/rpc/sharding.rs
- src/traft/rpc/sync.rs 10 additions, 8 deletionssrc/traft/rpc/sync.rs
Loading
Please register or sign in to comment