File tree 1 file changed +14
-2
lines changed
server/src/main/java/org/elasticsearch/cluster/coordination
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 31
31
import org .elasticsearch .common .settings .Settings ;
32
32
import org .elasticsearch .common .transport .TransportAddress ;
33
33
import org .elasticsearch .common .unit .TimeValue ;
34
+ import org .elasticsearch .common .util .concurrent .AbstractRunnable ;
34
35
import org .elasticsearch .discovery .ConfiguredHostsResolver ;
35
36
import org .elasticsearch .threadpool .ThreadPool .Names ;
36
37
import org .elasticsearch .transport .TransportException ;
@@ -201,9 +202,20 @@ private void handleWakeUp() {
201
202
}
202
203
});
203
204
204
- futureExecutor .schedule (new Runnable () {
205
+ futureExecutor .schedule (new AbstractRunnable () {
205
206
@ Override
206
- public void run () {
207
+ public boolean isForceExecution () {
208
+ return true ;
209
+ }
210
+
211
+ @ Override
212
+ public void onFailure (Exception e ) {
213
+ assert false : e ;
214
+ logger .debug ("unexpected exception in PeerFinder wakeup" , e );
215
+ }
216
+
217
+ @ Override
218
+ protected void doRun () {
207
219
synchronized (mutex ) {
208
220
handleWakeUp ();
209
221
}
You can’t perform that action at this time.
0 commit comments