mcvsubbu opened a new issue #3600: Start periodic tasks on controller when it 
becomes leader
URL: https://github.com/apache/incubator-pinot/issues/3600
 
 
   It is good to start the periodic tasks when a controller assumes leadership. 
This also means that the tasks should be stopped when controller loses 
leadership. The overall plan to do this is as follows:
   * Introduce a new class that keeps track of controller leadership (in terms 
of being helix leader). This logic is duplicated in multiple places now, remove 
from other places
   * Re-factor the periodic task code to iterate over tables in 
ControllerPeriodicTask class (rather than each individual task).
   * Introduce code to stop tasks when controller loses leadership, and start 
the taks right away when leadership is gained.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to