Commit 8d78995
* 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.
* No need in `synchronized (this.controlBusCommands)`
(cherry picked from commit f0a2f65)
1 parent e5606a9 commit 8d78995
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 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
0 commit comments