Commit 918a667
fix: add null cluster guard before state check in CephKvmExtension
P1: Separate null check from state check. When findByUuid returns null
(cluster deleted during race with reconnect callback), the original
`cluster != null && cluster.getState() != Enabled` short-circuits false
and falls through to createSecret(), causing downstream errors. Now null
cluster triggers early return with warn-level log.
P2: Improve comment to describe the constraint technically instead of
only referencing the ticket key.
Resolves: ZSTAC-802751 parent 2ababed commit 918a667
1 file changed
Lines changed: 7 additions & 2 deletions
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments