Index: src/kudu/tools/tool_replica_util.cc IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/kudu/tools/tool_replica_util.cc b/src/kudu/tools/tool_replica_util.cc --- a/src/kudu/tools/tool_replica_util.cc (revision dcbd0b4f144030e51fb921479c90dc3f8da01d9f) +++ b/src/kudu/tools/tool_replica_util.cc (revision e1e038a5f10b4986c29d96add047a32be122e8f6) @@ -496,7 +496,7 @@ // replica will not be evicted prior the new non-voter replica becomes // is promoted into voter. Demoting former leader too early might even // delay promotion of already caught-up non-leader replica. - if (is_all_voters && + if (is_all_voters && cstate.committed_config().peers().size() != 1 && leader_uuid == ts_uuid && leader_uuid == cstate.leader_uuid()) { // The leader is the node we intend to remove; make it step down. ignore_result(DoLeaderStepDown(tablet_id, leader_uuid, leader_hp,