Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/20277 )

Change subject: [tools] KUDU-3487 rebalancer checks the voter num.
......................................................................

[tools] KUDU-3487 rebalancer checks the voter num.

Replace rebalance for the tables whose replication factor is 1 might
stuck for a long time because the rebalancer send LeaderStepDown request
even if there is no other voter to transfer leadership.

So check the voter num before sending the request.

Change-Id: I3b3d5dfb383719f56a2d32b62d2b659b17928794
Reviewed-on: http://gerrit.cloudera.org:8080/20264
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
(cherry picked from commit 8369b3771c4ee58dcc20068626e64a212717cc65)
Reviewed-on: http://gerrit.cloudera.org:8080/20277
Reviewed-by: Yingchun Lai <[email protected]>
Tested-by: Yingchun Lai <[email protected]>
---
M src/kudu/tools/tool_replica_util.cc
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Yingchun Lai: Looks good to me, approved; Verified
  Alexey Serbin: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/20277
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: branch-1.17.x
Gerrit-MessageType: merged
Gerrit-Change-Id: I3b3d5dfb383719f56a2d32b62d2b659b17928794
Gerrit-Change-Number: 20277
Gerrit-PatchSet: 2
Gerrit-Owner: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Song Jiacheng <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>

Reply via email to