Skip to content

Run MQTT handler cleanup when startup fails before Artemis starts #3663

Backlog

Description

@ebariaux

If one MQTT handler completes init() and the next throws, the container calls MQTTBrokerService.stop() before the embedded Artemis server exists. The call to server.stop() throws a NullPointerException, so the initialized handler never receives its cleanup callback. 1.35.1 shutdown code

During startup rollback, each initialized handler should receive stop() once in reverse initialization order so it can release its resources.

Related to #3045. Found while reviewing #3656.

Activity

  1. added
    Bug
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions