Skip to content

test(e2e): tolerate pod recreation with same name in data corruption test - #11315

Merged
litaocdl merged 1 commit into
cloudnative-pg:mainfrom
leonardoce:e2e-datacorruption-fix
Aug 13, 2026
Merged

litaocdl merged 1 commit into
cloudnative-pg:mainfrom
leonardoce:e2e-datacorruption-fix

Conversation

@leonardoce

Copy link
Copy Markdown
Contributor

With in-process bootstrap, the operator can reuse the freed serial and recreate a pod with the same name within seconds, so the old primary pod's name may never be observed as absent. Track the old pod's UID and consider it replaced once a pod with the same name has a different UID, not just when the name disappears.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. E2E tests E2E tests tickets for easy triage on release process release-1.28 release-1.29 release-1.30 labels Aug 13, 2026
@cnpg-bot cnpg-bot added the backport-requested ◀️ This pull request should be backported to all supported releases label Aug 13, 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

With in-process bootstrap, the operator can reuse the freed serial and
recreate a pod with the same name within seconds, so the old primary
pod's name may never be observed as absent. Track the old pod's UID
and consider it replaced once a pod with the same name has a different
UID, not just when the name disappears.

Co-authored-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
@leonardoce
leonardoce force-pushed the e2e-datacorruption-fix branch from 70f6a87 to 082e051 Compare August 13, 2026 06:01
@leonardoce leonardoce changed the title fix(e2e): tolerate pod recreation with same name in data corruption test tests(e2e): tolerate pod recreation with same name in data corruption test Aug 13, 2026
@leonardoce leonardoce changed the title tests(e2e): tolerate pod recreation with same name in data corruption test test(e2e): tolerate pod recreation with same name in data corruption test Aug 13, 2026
@leonardoce

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

Copy link
Copy Markdown
Contributor

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 13, 2026
@litaocdl

Copy link
Copy Markdown
Collaborator

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Aug 13, 2026
@litaocdl
litaocdl merged commit 0603a9c into cloudnative-pg:main Aug 13, 2026
33 of 35 checks passed
cnpg-bot pushed a commit that referenced this pull request Aug 13, 2026
…test (#11315)

With in-process bootstrap, the operator can reuse the freed serial and
recreate a pod with the same name within seconds, so the old primary
pod's name may never be observed as absent. Track the old pod's UID and
consider it replaced once a pod with the same name has a different UID,
not just when the name disappears.

Signed-off-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 0603a9c)
cnpg-bot pushed a commit that referenced this pull request Aug 13, 2026
…test (#11315)

With in-process bootstrap, the operator can reuse the freed serial and
recreate a pod with the same name within seconds, so the old primary
pod's name may never be observed as absent. Track the old pod's UID and
consider it replaced once a pod with the same name has a different UID,
not just when the name disappears.

Signed-off-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 0603a9c)
cnpg-bot pushed a commit that referenced this pull request Aug 13, 2026
…test (#11315)

With in-process bootstrap, the operator can reuse the freed serial and
recreate a pod with the same name within seconds, so the old primary
pod's name may never be observed as absent. Track the old pod's UID and
consider it replaced once a pod with the same name has a different UID,
not just when the name disappears.

Signed-off-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>
(cherry picked from commit 0603a9c)
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 E2E tests E2E tests tickets for easy triage on release process lgtm This PR has been approved by a maintainer no-issue ok to merge 👌 This PR can be merged release-1.28 release-1.30 size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants