mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user