Repository navigation
fix(replica clusters): requeue until the instances report a system ID - #11603
gabriele-wolfox wants to merge 1 commit into
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
After a role swap, the demoted cluster could keep reporting ConsistentSystemID=False (NotFound) with an empty status.systemID for tens of minutes, although its instances were healthy again within seconds. The instances are sampled while still fenced or restarting, and the follow-up reconciliations end without a requeue. Status-only updates do not retrigger the controller, and the short fence does not flip any Pod readiness, so nothing refreshes the condition until an unrelated event touches the Cluster. On replica clusters, requeue after 5 seconds when instances were sampled but none reported a system ID, unless instances are fenced on purpose. Closes cloudnative-pg#11602 Assisted-by: Claude Signed-off-by: Gabriele Quaresima <[email protected]>
e3383a5 to
2082a7f
Compare
2082a7f to
8a6c6c0
Compare
|
/test |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/38240546482 |
fa937b6 to
2082a7f
Compare
|
Hi @gabriele-wolfox, thanks for the detailed report and the analysis in #11602. Could you take a look at #11645? It fixes the same problem in the instance manager instead of the operator. While an instance is fenced or restarting, the status probe masks the connection error and returns no system ID, even though pg_control holds it and can be read with PostgreSQL down. #11645 fills it from pg_control in that case, so after a demotion the instances keep reporting the system ID and ConsistentSystemID never drops to NotFound. That removes the need for the requeue. I reproduced your swap on kind: on main the demoted cluster stayed False/NotFound for 300s, and with #11645 it stayed True/Unique throughout. Let me know what you think. |
|
Hi @armru , thanks to look into the issue. |
|
Superseded by #11645 |
After a role swap, the demoted cluster could keep reporting ConsistentSystemID=False (NotFound) with an empty status.systemID for tens of minutes, although its instances were healthy again within seconds.
The instances are sampled while still fenced or restarting, and the follow-up reconciliations end without a requeue. Status-only updates do not retrigger the controller, and the short fence does not flip any Pod readiness, so nothing refreshes the condition until an unrelated event touches the Cluster.
On replica clusters, requeue after 5 seconds when instances were sampled but none reported a system ID, unless instances are fenced on purpose.
Closes #11602
Assisted-by: Claude