Skip to content

Calling the shutdownNow method of ScheduleMessageService#deliverExecutorService may result in broker inconsistent state. #3541

@XiaoyiPeng

Description

@XiaoyiPeng

BUG REPORT

  1. Please describe the issue you observed:

    Calling the shutdownNow() method of ScheduleMessageService#deliverExecutorService may lead to broker inconsistent state.

  2. Please tell us about your environment:
    Windows 10

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions