File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
server/src/main/java/org/elasticsearch/indices Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 6666import org .elasticsearch .common .util .Maps ;
6767import org .elasticsearch .common .util .concurrent .AbstractRefCounted ;
6868import org .elasticsearch .common .util .concurrent .EsExecutors ;
69- import org .elasticsearch .common .util .concurrent .EsRejectedExecutionException ;
7069import org .elasticsearch .common .util .iterable .Iterables ;
7170import org .elasticsearch .common .xcontent .LoggingDeprecationHandler ;
7271import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
@@ -1220,13 +1219,7 @@ public void run() {
12201219 }
12211220 // Reschedule itself to run again if not closed
12221221 if (closed .get () == false ) {
1223- try {
1224- threadPool .schedule (this , interval , ThreadPool .Names .SAME );
1225- } catch (EsRejectedExecutionException e ) {
1226- if (closed .get () == false ) {
1227- throw e ;
1228- }
1229- }
1222+ threadPool .scheduleUnlessShuttingDown (interval , ThreadPool .Names .SAME , this );
12301223 }
12311224 }
12321225
You can’t perform that action at this time.
0 commit comments