Commit f0a2f65
authored
* GH-11042: Fix race condition in the ControlBusCommandRegistry
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`**
* No need in `synchronized (this.controlBusCommands)`
1 parent 83469aa commit f0a2f65
1 file changed
Lines changed: 3 additions & 2 deletions
File tree
- spring-integration-core/src/main/java/org/springframework/integration/support/management
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
0 commit comments