-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raftstore/config: support merge #2819
Conversation
tests/raftstore_cases/test_snap.rs
Outdated
@@ -435,6 +437,7 @@ fn test_snapshot_with_append<T: Simulator>(cluster: &mut Cluster<T>) { | |||
// truncate the log quickly so that we can force sending snapshot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about add a method with_test_raftstore_config
for Cluster
?
src/raftstore/store/config.rs
Outdated
@@ -149,6 +154,8 @@ impl Default for Config { | |||
raft_store_max_leader_lease: ReadableDuration::secs(9), | |||
right_derive_when_split: true, | |||
allow_remove_leader: false, | |||
max_merge_log_gap: 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not merge_max_log_gap
?
rest LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-integration-tests |
PTAL |
src/raftstore/store/config.rs
Outdated
@@ -95,6 +95,11 @@ pub struct Config { | |||
|
|||
pub allow_remove_leader: bool, | |||
|
|||
/// Max log gap allowed to propose merge. | |||
pub merge_max_log_gap: u64, | |||
// Interval to repropose merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use ///
PTAL |
/run-integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI failed @BusyJay |
/run-integration-common-test |
This pr adds configuration entries for merge. Actual implementation see #2502.