Skip to content

Commit

Permalink
[Discovery] Start master fault detection after pingInterval
Browse files Browse the repository at this point in the history
This is to allow the master election to complete on the chosen master.

 Relates to #6706
  • Loading branch information
bleskes committed Aug 23, 2014
1 parent 95e7268 commit 5bba569
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -156,8 +156,8 @@ private void innerStart(final DiscoveryNode masterNode) {
}
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) {
Expand Down

0 comments on commit 5bba569

Please sign in to comment.