Skip to content

Make pg_rewind work with encrypted WAL #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2025

Conversation

dAdAbird
Copy link
Member

@dAdAbird dAdAbird commented May 14, 2025

The main goal was to pass pg_rewind tests to find and fix WAL-related issues. Along with that, now we have pg_rewind working with encrypted WAL. There are no changes in the user interface.

This PR omits one of the pg_rewind tests. That fails due to pg_basebackup (see PG-1603).

For PG-1037, PG-1412

@dAdAbird dAdAbird requested a review from dutow as a code owner May 14, 2025 15:44
@dAdAbird dAdAbird requested a review from AndersAstrand May 14, 2025 15:45
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.61%. Comparing base (600172d) to head (2c4c15f).
Report is 38 commits behind head on TDE_REL_17_STABLE.

❌ Your project status has failed because the head coverage (83.61%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           TDE_REL_17_STABLE     #335      +/-   ##
=====================================================
- Coverage              84.65%   83.61%   -1.05%     
=====================================================
  Files                     21       21              
  Lines                   2588     2765     +177     
  Branches                 401      434      +33     
=====================================================
+ Hits                    2191     2312     +121     
- Misses                   316      368      +52     
- Partials                  81       85       +4     
Components Coverage Δ
access 81.88% <ø> (+0.77%) ⬆️
catalog 87.89% <100.00%> (-0.34%) ⬇️
common 77.77% <ø> (ø)
encryption 73.45% <ø> (ø)
keyring 73.21% <100.00%> (+0.32%) ⬆️
src 87.52% <ø> (-3.92%) ⬇️
smgr 94.85% <ø> (ø)
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dAdAbird dAdAbird marked this pull request as draft July 2, 2025 13:39
@dAdAbird dAdAbird marked this pull request as ready for review July 3, 2025 18:21
Copy link
Collaborator

@dutow dutow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the second commit:

These tests are a copy of upstream's pg_rewind tests with small changes
in setup_cluster to set WAL encryption on.

Can you split this commit into two, one that just copies the files, and another that contains only the required modifications?

dAdAbird added 4 commits July 16, 2025 18:41
These tests are a carbon copy of upstream's pg_rewind tests. Changes
for WAL encryption will be added in the following commit.
`standby_source` test is not copied as it fails because of changes
needed in pg_basebackup.
Now the TDE version of pg_rewind tests runs with the WAL encryption ON
We use TLI to calculate encryption IV, therefore, data in segments has
to be re-encrypted when copied to the new timeline.

For PG-1412
@dAdAbird
Copy link
Member Author

@dutow I split the tests commit

@dAdAbird dAdAbird requested a review from dutow July 16, 2025 15:44
@dAdAbird dAdAbird merged commit ec7528b into percona:TDE_REL_17_STABLE Jul 18, 2025
18 of 19 checks passed
@dAdAbird dAdAbird deleted the pg_r3wind branch July 18, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants