Skip to content

Make brokerName immutable in RegionBroker#1917

Merged
cshannon merged 1 commit intoapache:mainfrom
cshannon:broker-name-immutable
Apr 14, 2026
Merged

Make brokerName immutable in RegionBroker#1917
cshannon merged 1 commit intoapache:mainfrom
cshannon:broker-name-immutable

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.

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.
@cshannon cshannon merged commit 084502a into apache:main Apr 14, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.3.0 Apr 14, 2026
@cshannon cshannon deleted the broker-name-immutable branch April 14, 2026 12:56
cshannon added a commit to cshannon/activemq that referenced this pull request Apr 14, 2026
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 added a commit to cshannon/activemq that referenced this pull request Apr 14, 2026
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 added a commit that referenced this pull request Apr 14, 2026
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 added a commit that referenced this pull request Apr 14, 2026
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)
pburgess147 pushed a commit to peersoftware/activemq that referenced this pull request Apr 17, 2026
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)
jgallimore added a commit to tomitribe/activemq that referenced this pull request Apr 24, 2026
jgallimore added a commit to tomitribe/activemq that referenced this pull request Apr 24, 2026
jgallimore added a commit to tomitribe/activemq that referenced this pull request Apr 24, 2026
jgallimore added a commit to tomitribe/activemq that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants