[Discovery] Start master fault detection after pingInterval
This is to allow the master election to complete on the chosen master. Relates to #6706
This commit is contained in:
parent
5302a53145
commit
3586e38c40
|
@ -156,8 +156,8 @@ public class MasterFaultDetection extends AbstractComponent {
|
|||
}
|
||||
this.masterPinger = new MasterPinger();
|
||||
|
||||
// we use schedule with a 0 time value to run the pinger on the pool as it will run on later
|
||||
threadPool.schedule(TimeValue.timeValueMillis(0), ThreadPool.Names.SAME, masterPinger);
|
||||
// we start pinging slightly later to allow the chosen master to complete it's own master election
|
||||
threadPool.schedule(pingInterval, ThreadPool.Names.SAME, masterPinger);
|
||||
}
|
||||
|
||||
public void stop(String reason) {
|
||||
|
|
Loading…
Reference in New Issue