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 6565import org .elasticsearch .common .util .BigArrays ;
6666import org .elasticsearch .common .util .concurrent .AbstractRefCounted ;
6767import org .elasticsearch .common .util .concurrent .EsExecutors ;
68- import org .elasticsearch .common .util .concurrent .EsRejectedExecutionException ;
6968import org .elasticsearch .common .util .iterable .Iterables ;
7069import org .elasticsearch .common .xcontent .LoggingDeprecationHandler ;
7170import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
@@ -1226,13 +1225,7 @@ public void run() {
12261225 }
12271226 // Reschedule itself to run again if not closed
12281227 if (closed .get () == false ) {
1229- try {
1230- threadPool .schedule (this , interval , ThreadPool .Names .SAME );
1231- } catch (EsRejectedExecutionException e ) {
1232- if (closed .get () == false ) {
1233- throw e ;
1234- }
1235- }
1228+ threadPool .scheduleUnlessShuttingDown (interval , ThreadPool .Names .SAME , this );
12361229 }
12371230 }
12381231
You can’t perform that action at this time.
0 commit comments