Skip to content

revert(restore): break certificate-wait deadlock in orphan-PVC restore - #11548

Merged
mnencia merged 1 commit into
mainfrom
dev/revert-11492
Sep 22, 2026
Merged

mnencia merged 1 commit into
mainfrom
dev/revert-11492

Conversation

@mnencia

@mnencia mnencia commented Sep 22, 2026

Copy link
Copy Markdown
Member

This reverts commit 0d65c25 (#11492).

No genuinely new Pod ever reaches the restore gate before the cluster is marked initialized, so #11492 has no legitimate beneficiary: it only changes where a stale bootstrap-instance init container gets stuck. Before #11492, a stale join-role container parked on the certificate wait (#11491). After it, the wait resolves immediately and the same container proceeds into the join step instead, where it now hangs dialing a primary with no running pod (#11503). The initdb-role case (#11505) is unaffected either way, since initdb never waits on certificate status.

Reverting restores the #11491 behavior; it does not fix the underlying stale-container bug, which needs its own fix tracked in #11503.

@mnencia
mnencia requested a review from a team as a code owner September 22, 2026 15:48
@mnencia mnencia added backport-requested ◀️ This pull request should be backported to all supported releases release-1.28 release-1.29 labels Sep 22, 2026
@cnpg-bot cnpg-bot added the backport-requested ◀️ This pull request should be backported to all supported releases label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@mnencia

mnencia commented Sep 22, 2026

Copy link
Copy Markdown
Member Author

/ok-to-merge revert

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Sep 22, 2026
This reverts commit 0d65c25 (#11492).

No genuinely new Pod ever reaches the restore gate before the cluster
is marked initialized, so #11492 has no legitimate beneficiary: it
only changes where a stale bootstrap-instance init container gets
stuck. Before #11492, a stale join-role container parked on the
certificate wait (#11491). After it, the wait resolves immediately and
the same container proceeds into the join step instead, where it now
hangs dialing a primary with no running pod (#11503). The initdb-role
case (#11505) is unaffected either way, since initdb never waits on
certificate status.

Reverting restores the #11491 behavior; it does not fix the underlying
stale-container bug, which needs its own fix tracked in #11503.

Signed-off-by: Marco Nenciarini <[email protected]>
@mnencia
mnencia merged commit a6afa71 into main Sep 22, 2026
108 of 113 checks passed
@mnencia
mnencia deleted the dev/revert-11492 branch September 22, 2026 16:55
cnpg-bot pushed a commit that referenced this pull request Sep 22, 2026
#11548)

This reverts commit 0d65c25 (#11492).

No genuinely new Pod ever reaches the restore gate before the cluster is
marked initialized, so #11492 has no legitimate beneficiary: it only
changes where a stale bootstrap-instance init container gets stuck.
Before #11492, a stale join-role container parked on the certificate
wait (#11491). After it, the wait resolves immediately and the same
container proceeds into the join step instead, where it now hangs
dialing a primary with no running pod (#11503). The initdb-role case
(#11505) is unaffected either way, since initdb never waits on
certificate status.

Reverting restores the #11491 behavior; it does not fix the underlying
stale-container bug, which needs its own fix tracked in #11503.

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit a6afa71)
mnencia added a commit that referenced this pull request Sep 23, 2026
#11548)

This reverts commit 0d65c25 (#11492).

No genuinely new Pod ever reaches the restore gate before the cluster is
marked initialized, so #11492 has no legitimate beneficiary: it only
changes where a stale bootstrap-instance init container gets stuck.
Before #11492, a stale join-role container parked on the certificate
wait (#11491). After it, the wait resolves immediately and the same
container proceeds into the join step instead, where it now hangs
dialing a primary with no running pod (#11503). The initdb-role case
(#11505) is unaffected either way, since initdb never waits on
certificate status.

Reverting restores the #11491 behavior; it does not fix the underlying
stale-container bug, which needs its own fix tracked in #11503.

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit a6afa71)
mnencia added a commit that referenced this pull request Sep 23, 2026
#11548)

This reverts commit 0d65c25 (#11492).

No genuinely new Pod ever reaches the restore gate before the cluster is
marked initialized, so #11492 has no legitimate beneficiary: it only
changes where a stale bootstrap-instance init container gets stuck.
Before #11492, a stale join-role container parked on the certificate
wait (#11491). After it, the wait resolves immediately and the same
container proceeds into the join step instead, where it now hangs
dialing a primary with no running pod (#11503). The initdb-role case
(#11505) is unaffected either way, since initdb never waits on
certificate status.

Reverting restores the #11491 behavior; it does not fix the underlying
stale-container bug, which needs its own fix tracked in #11503.

Signed-off-by: Marco Nenciarini <[email protected]>
(cherry picked from commit a6afa71)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases no-issue ok to merge 👌 This PR can be merged release-1.28 release-1.30

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants