Skip to content

GH-11042: Fix race condition in the ControlBusCommandRegistry#11046

Open
artembilan wants to merge 1 commit into
spring-projects:mainfrom
artembilan:GH-11042
Open

GH-11042: Fix race condition in the ControlBusCommandRegistry#11046
artembilan wants to merge 1 commit into
spring-projects:mainfrom
artembilan:GH-11042

Conversation

@artembilan
Copy link
Copy Markdown
Member

Fixes: #11042

The ControlBusCommandRegistry can be accessed (and populated) concurrently. Therefore, it is better to protect its internal from the ConcurrentModificationException

  • Use ConcurrentHashMap and synchronized in the ControlBusCommandRegistry whenever concurrent access is possible.

Auto-cherry-pick to 7.0.x & 6.5.x

…egistry

Fixes: spring-projects#11042

The `ControlBusCommandRegistry` can be accessed (and populated) concurrently.
Therefore, it is better to protect its internal from the `ConcurrentModificationException`

* Use `ConcurrentHashMap` and `synchronized` in the `ControlBusCommandRegistry`
whenever concurrent access is possible.

**Auto-cherry-pick to `7.0.x` & `6.5.x`**
@artembilan artembilan requested a review from cppwfs June 4, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The ControlBusCommandRegistry.controlBusCommands must be a ConcurrentHashMap

1 participant