Gabriella Lotz has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23764


Change subject: auto_leader_rebalancer: fix failing tests exposed by timing 
changes
......................................................................

auto_leader_rebalancer: fix failing tests exposed by timing changes

Per-tserver move tracking work:
https://gerrit.cloudera.org/c/23755/ altered replica rebalancing
timing, exposing pre-existing issues in leader rebalancer tests.

Fixes:
- AddTserver/RestartTserver: Re-enabled replica rebalancing and disabled
  automatic background threads. Tests expected perfect leader balance but
  disabled replica rebalancing, making convergence impossible when new
  tservers have few replicas.

- TestMaintenanceMode: Disabled automatic background threads to prevent
  races with manual test calls.

- TEST mode in auto_leader_rebalancer.cc: Added heuristic to allow pending
  tasks when replica distribution is skewed (min < avg/2), while requiring
  zero tasks when replicas are evenly distributed.

Change-Id: I9938fd88b1d4460f267164c9eee6ea081af195a6
---
M src/kudu/master/auto_leader_rebalancer-test.cc
M src/kudu/master/auto_leader_rebalancer.cc
2 files changed, 42 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/64/23764/1
--
To view, visit http://gerrit.cloudera.org:8080/23764
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9938fd88b1d4460f267164c9eee6ea081af195a6
Gerrit-Change-Number: 23764
Gerrit-PatchSet: 1
Gerrit-Owner: Gabriella Lotz <[email protected]>

Reply via email to