Skip to content

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

Open
mattrpav wants to merge 1 commit into
apache:mainfrom
mattrpav:amq-gh-2282
Open

[#2275] Drop redundant sequence generator monitor in RegionBroker#2283
mattrpav wants to merge 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants