Fix setting interrupot status after shutdown

This commit is contained in:
Monishkumar Gajendran 2021-10-06 17:29:34 -07:00
parent 9445847447
commit c3e2980bd4

View file

@ -306,10 +306,10 @@ public class PrefetchRecordsPublisher implements RecordsPublisher {
}
}
} catch (InterruptedException e) {
// Preserve interrupt status
Thread.currentThread().interrupt();
// (Re-)Cancel if current thread also interrupted
executorService.shutdownNow();
// Preserve interrupt status
Thread.currentThread().interrupt();
}
started = false;
}