Skip to content

[6.4.x] Publish the destination paths only once they are complete (#2939) (#2940) - #2943

Merged
cshannon merged 1 commit into
apache:activemq-6.4.xfrom
cshannon:backport-2940-6.4.x
Dec 4, 2026
Merged

cshannon merged 1 commit into
apache:activemq-6.4.xfrom
cshannon:backport-2940-6.4.x

Conversation

@cshannon

@cshannon cshannon commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

ActiveMQDestination.getDestinationPaths() assigned the cached array before filling it, so another thread could see null path elements. Over vm:// the broker parses the shared composite advisory topic of every connection, and two connections starting at once failed with a NullPointerException in DestinationMapNode. The paths are now filled into a local array and published through a volatile field.

(cherry picked from commit bb147a7)

… (apache#2940)

ActiveMQDestination.getDestinationPaths() assigned the cached array before
filling it, so another thread could see null path elements. Over vm:// the
broker parses the shared composite advisory topic of every connection, and
two connections starting at once failed with a NullPointerException in
DestinationMapNode. The paths are now filled into a local array and
published through a volatile field.

(cherry picked from commit bb147a7)
@cshannon cshannon self-assigned this Dec 4, 2026
@cshannon cshannon changed the title Publish the destination paths only once they are complete (#2939) (#2940) [6.4.x] Publish the destination paths only once they are complete (#2939) (#2940) Dec 4, 2026
@cshannon
cshannon merged commit c032d27 into apache:activemq-6.4.x Dec 4, 2026
10 checks passed
@cshannon
cshannon deleted the backport-2940-6.4.x branch December 4, 2026 22:17
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.4.1 Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants