Repository navigation
Commit fe478b8
committed
cks: guard automatic success event by rotation ownership
The automatic rotation success event was recorded even when isStillOwnRotation was false, while the state and detail writes were correctly skipped. A stale worker could therefore emit an automatic renewal event after another management server had already taken over the cluster.
Move the event into the ownership guard and extend the takeover test to verify no event is recorded.1 parent 6b879c0 commit fe478b8
2 files changed
Lines changed: 7 additions & 5 deletions
File tree
- plugins/integrations/kubernetes-service/src
- main/java/com/cloud/kubernetes/cluster/actionworkers
- test/java/com/cloud/kubernetes/cluster/actionworkers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
362 | 367 | | |
363 | 368 | | |
364 | 369 | | |
365 | 370 | | |
366 | 371 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
0 commit comments