Gabriella Lotz created KUDU-3827:
------------------------------------
Summary: Auto-rebalancers give up on the whole round when a tablet
isn't running
Key: KUDU-3827
URL: https://issues.apache.org/jira/browse/KUDU-3827
Project: Kudu
Issue Type: Sub-task
Reporter: Gabriella Lotz
Both the auto-rebalancer and the auto-leader-rebalancer go through every tablet
of every table and look up its locations with GetTabletLocations(). For a
tablet that isn't in the RUNNING state yet, for example one of a table that's
still being created or of a newly added range partition, that call returns
ServiceUnavailable. For a deleted tablet it returns NotFound. The rebalancers
pass that error up with RETURN_NOT_OK, so a single such tablet makes the whole
round fail.
Proposed fix: skip tablets whose lookup returns NotFound or as the rest of the
rebalancer code already does for moves it can't make. Return OK when the
per-tablet leader check fails, the same way the earlier checks do.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)