DBZ-7661 Always shut down record processing thread pool
This commit is contained in:
parent
e49c9d5150
commit
16a089abb6
@ -540,10 +540,13 @@ private void stopRecordService() {
|
||||
LOGGER.debug("Stopping records service.");
|
||||
final long shutdownTimeout = config.getLong(AsyncEngineConfig.RECORD_PROCESSING_SHUTDOWN_TIMEOUT_MS);
|
||||
try {
|
||||
recordService.shutdown();
|
||||
recordService.awaitTermination(shutdownTimeout, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
LOGGER.info("Timed out while waiting for record service shutdown. Shutting it down immediately.");
|
||||
}
|
||||
finally {
|
||||
recordService.shutdownNow();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user