InterruptedException should not be ignored (#5515)

* InterruptedException should not be ignored 

InterruptedException should not be ignored  
print InterruptedException  message and  Restore interrupted state

* Fix checkstyle issue

Co-authored-by: Li Zhanhui <lizhanhui@gmail.com>
This commit is contained in:
asia-zengtao
2022-11-17 15:14:56 +08:00
committed by GitHub
parent b2de9e1cdf
commit 2f7bdda0af
@@ -1427,6 +1427,8 @@ public class BrokerController {
try {
scheduledExecutorService.awaitTermination(5000, TimeUnit.MILLISECONDS);
} catch (InterruptedException ignore) {
BrokerController.LOG.warn("shutdown ScheduledExecutorService was Interrupted! ", ignore);
Thread.currentThread().interrupt();
}
}