BUG REPORT
-
Please describe the issue you observed:
Calling the shutdownNow() method of ScheduleMessageService#deliverExecutorService may lead to broker inconsistent state.
-
Please tell us about your environment:
Windows 10
-
Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
When the ScheduleMessageService#shutdown() method is called, shutdownNow() method of ScheduleMessageService#deliverExecutorService is called ,which will interrput threads in ScheduleMessageService#deliverExecutorService .
If at this point, the task(eg: ScheduleMessageService#persist() operation) in ScheduleMessageService#deliverExecutorServicehas not completely done, which may lead to broker inconsistent state.