Repository navigation
Commit dfc19d4
fix(kraft): filter controller-only nodes from Cruise Control remove_broker
The add_broker and rebalance branches of the Cruise Control task controller
already drop controller-only nodes before calling Cruise Control (CC has no
knowledge of them in KRaft mode), but the remove_broker branch did not. It
relied entirely on the upstream invariant that controller-only nodes never
receive a GracefulDownscaleRequired state. If that invariant ever regressed,
a controller-only broker id would be sent to CC's remove_broker unfiltered
and error out / stall the operation.
Apply util.FilterControllerOnlyNodes in the remove_broker branch too, so all
three broker-id CC operations are symmetrically guarded, and only issue the
CC request when the filtered id list is non-empty.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
(cherry picked from commit f626ded)1 parent 000f861 commit dfc19d4
1 file changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
183 | 191 | | |
184 | 192 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
189 | 204 | | |
190 | 205 | | |
191 | 206 | | |
| |||
0 commit comments