Skip to content

[#2282] Drop redundant sequence generator monitor in RegionBroker - #2283

Merged
mattrpav merged 1 commit into
apache:mainfrom
mattrpav:amq-gh-2282
Aug 5, 2026
Merged

mattrpav merged 1 commit into
apache:mainfrom
mattrpav:amq-gh-2282

Conversation

@mattrpav

@mattrpav mattrpav commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

LongSequenceGenerator is private final on RegionBroker and is already thread-safe. The synchronized is redundant.

@cshannon cshannon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea why this is protected by synchronized, it's already using the atomic sequencer as you pointed out so i don't see any reason to not do this.

@mattrpav
mattrpav merged commit cd1dfa2 into apache:main Aug 5, 2026
19 of 20 checks passed
@mattrpav
mattrpav deleted the amq-gh-2282 branch August 5, 2026 22:49
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Apache ActiveMQ v6.4.0 Aug 5, 2026
@mattrpav mattrpav changed the title [#2275] Drop redundant sequence generator monitor in RegionBroker [#2282] Drop redundant sequence generator monitor in RegionBroker Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants