You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2017/11/22 19:36:41 UTC

kudu git commit: consensus: Add gflag to enable improved re-replication

Repository: kudu
Updated Branches:
  refs/heads/master 8a81f4ff1 -> 6c02bea97


consensus: Add gflag to enable improved re-replication

This gflag will be used to control whether improved re-replication is
enabled on a cluster.

Change-Id: I247842af7d0172d6e6b167a29613f6b261990a01
Reviewed-on: http://gerrit.cloudera.org:8080/8626
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <as...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/6c02bea9
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/6c02bea9
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/6c02bea9

Branch: refs/heads/master
Commit: 6c02bea97db29ef178b2f907c6d7fb561d9ac82c
Parents: 8a81f4f
Author: Mike Percy <mp...@apache.org>
Authored: Tue Nov 21 14:55:36 2017 -0800
Committer: Alexey Serbin <as...@cloudera.com>
Committed: Wed Nov 22 19:35:30 2017 +0000

----------------------------------------------------------------------
 src/kudu/consensus/raft_consensus.cc | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/6c02bea9/src/kudu/consensus/raft_consensus.cc
----------------------------------------------------------------------
diff --git a/src/kudu/consensus/raft_consensus.cc b/src/kudu/consensus/raft_consensus.cc
index ce4ba54..58cc087 100644
--- a/src/kudu/consensus/raft_consensus.cc
+++ b/src/kudu/consensus/raft_consensus.cc
@@ -120,6 +120,13 @@ DEFINE_bool(raft_enable_tombstoned_voting, true,
 TAG_FLAG(raft_enable_tombstoned_voting, experimental);
 TAG_FLAG(raft_enable_tombstoned_voting, runtime);
 
+// Enable improved re-replication (KUDU-1097).
+DEFINE_bool(raft_prepare_replacement_before_eviction, false,
+            "When enabled, failed replicas will only be evicted after a "
+            "replacement has been prepared for them.");
+TAG_FLAG(raft_prepare_replacement_before_eviction, advanced);
+TAG_FLAG(raft_prepare_replacement_before_eviction, experimental);
+
 DECLARE_int32(memory_limit_warn_threshold_percentage);
 
 // Metrics