Skip to content

Fixes Issue #8215 [Bug]: The annotation skipEmptyWalArchiveCheck is not working when recovering a Cluster via Barman Cloud Plugin - #8216

Closed
omsuneri wants to merge 2 commits into
cloudnative-pg:mainfrom
omsuneri:resolving-8215
Closed

omsuneri wants to merge 2 commits into
cloudnative-pg:mainfrom
omsuneri:resolving-8215

Conversation

@omsuneri

@omsuneri omsuneri commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

@gabriele-wolfox @gbartolini @sxd the following changes resolves the issue #8215
please review the PR and request if any further changes required

The skipEmptyWalArchiveCheck annotation was being ignored during cluster recovery when using the Barman Cloud Plugin because the plugin recovery path was missing the checkBackupDestination() call that validates the WAL archive destination and respects the annotation.

This change adds the missing checkBackupDestination call to the plugin
recovery path in the Restore() function, ensuring feature parity with
the native Barman recovery method. 
signed-off-by: omsuneri <[email protected]>

Signed-off-by: Om Santosh Suneri <[email protected]>
Add test suite for the IsEmptyWalArchiveCheckEnabled function to verify
that the skipEmptyWalArchiveCheck annotation is properly detected. These tests ensure the annotation logic works correctly and provide
regression protection for the skipEmptyWalArchiveCheck functionality.
signed-off-by: omsuneri <[email protected]>

Signed-off-by: Om Santosh Suneri <[email protected]>
@omsuneri
omsuneri requested a review from a team August 1, 2025 15:56
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Aug 1, 2025
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 1, 2025
@github-actions

github-actions Bot commented Aug 1, 2025

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

@gbartolini

Copy link
Copy Markdown
Contributor

Solved by cloudnative-pg/plugin-barman-cloud#458

@gbartolini gbartolini closed this Aug 7, 2025
@github-actions

github-actions Bot commented Aug 7, 2025

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

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 bug 🐛 Something isn't working ok to merge 👌 This PR can be merged size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants