Skip to content

[5.19.x] Make brokerName immutable in RegionBroker (#1917)#1924

Merged
cshannon merged 1 commit intoapache:activemq-5.19.xfrom
cshannon:1917-backport-5.19.x
Apr 14, 2026
Merged

[5.19.x] Make brokerName immutable in RegionBroker (#1917)#1924
cshannon merged 1 commit intoapache:activemq-5.19.xfrom
cshannon:1917-backport-5.19.x

Conversation

@cshannon
Copy link
Copy Markdown
Contributor

The brokerName should come from BrokerService and should only be configured on first creation. This update changes RegionBroker so that it gets the name from the broker service during construction and verifies that it is not null.

The other benefit of this is that BrokerService always validates the name has valid characters. This change also cleans up the name regex to get rid of unnecessary escapes and also adds some regex tests.

(cherry picked from commit 084502a)

The brokerName should come from BrokerService and should only be
configured on first creation. This update changes RegionBroker so that
it gets the name from the broker service during construction and
verifies that it is not null.

The other benefit of this is that BrokerService always validates the
name has valid characters. This change also cleans up the name regex to
get rid of unnecessary escapes and also adds some regex tests.

(cherry picked from commit 084502a)
@cshannon cshannon merged commit 9e69872 into apache:activemq-5.19.x Apr 14, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in Apache ActiveMQ v5.19.6 Apr 14, 2026
@cshannon cshannon deleted the 1917-backport-5.19.x branch April 14, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Development

Successfully merging this pull request may close these issues.

1 participant