[ 
https://issues.apache.org/jira/browse/KUDU-3733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabriella Lotz resolved KUDU-3733.
----------------------------------
    Fix Version/s: NA
       Resolution: Implemented

> Restructure RunLoop() in auto_leader_rebalancer
> -----------------------------------------------
>
>                 Key: KUDU-3733
>                 URL: https://issues.apache.org/jira/browse/KUDU-3733
>             Project: Kudu
>          Issue Type: Sub-task
>            Reporter: Gabriella Lotz
>            Assignee: Gabriella Lotz
>            Priority: Major
>             Fix For: NA
>
>
> h3. Context:
> RunLoop() currently sleeps for the full 
> --auto_leader_rebalancing_interval_seconds (default: 1 hour) before executing 
> the first rebalance pass. This means that on master restart or failover, the 
> rebalancer is effectively inactive for up to an hour, which is unacceptable 
> in production. The loop should run once immediately on startup, then sleep 
> between subsequent iterations.
> h3. Current behavior:
> sleep → run → sleep → run → ...
> h3. Expected behavior:
> run → sleep → run → sleep → ...
> The fix is a small restructure of RunLoop() in auto_leader_rebalancer.cc from 
> a while(!WaitFor(...)) pattern to a do \{ run } while(!WaitFor(...)) pattern.
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to