Commit 566db6f
fix: Reload RedisCluster instance after status updates conflict (#1583)
* fix: Reload RedisCluster instance after status updates
Fix race condition where status checks used stale instance data,
preventing health checks from running. Reload instance after each
status update to ensure subsequent checks have fresh status values.
This fixes cluster state reporting issues where ReadyLeaderReplicas
and ReadyFollowerReplicas checks always failed due to stale data.
Signed-off-by: Damian Seredyn <[email protected]>
* retry on conflict
Signed-off-by: drivebyer <[email protected]>
* update concurrent
Signed-off-by: drivebyer <[email protected]>
---------
Signed-off-by: Damian Seredyn <[email protected]>
Signed-off-by: drivebyer <[email protected]>
Co-authored-by: Damian Seredyn <[email protected]>
Co-authored-by: drivebyer <[email protected]>1 parent 66eaa2d commit 566db6f
File tree
2 files changed
+20
-3
lines changed- .github/workflows
- internal/controller/rediscluster
2 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| |||
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
342 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
343 | 360 | | |
344 | 361 | | |
345 | 362 | | |
| |||
0 commit comments