Skip to content

Rename relation key removal XLOG record type to match naming consistency #419

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 1 commit into from
Jun 12, 2025

Conversation

artemgavrilov
Copy link
Collaborator

Rename XLOG record type for relation key removal and add missing type description and string representations.

Rename XLOG record type for relation key removal and add missing type description and string representations.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.

Project coverage is 84.75%. Comparing base (ad80ac2) to head (a6635b1).

❌ Your project status has failed because the head coverage (84.75%) 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     #419      +/-   ##
=====================================================
- Coverage              84.92%   84.75%   -0.18%     
=====================================================
  Files                     21       21              
  Lines                   2561     2565       +4     
  Branches                 394      393       -1     
=====================================================
- Hits                    2175     2174       -1     
- Misses                   306      311       +5     
  Partials                  80       80              
Components Coverage Δ
access 81.11% <16.66%> (-0.79%) ⬇️
catalog 88.60% <ø> (ø)
common 77.77% <ø> (ø)
encryption 73.45% <ø> (ø)
keyring 72.88% <ø> (ø)
src 91.44% <ø> (ø)
smgr 94.85% <100.00%> (-0.03%) ⬇️
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@artemgavrilov artemgavrilov marked this pull request as ready for review June 11, 2025 20:29
@AndersAstrand
Copy link
Collaborator

I agree that it should be consistently named of course, but is add/delete the pair we want to go with rather than add/remove? I recall you mentioning you had a naming scheme for such pairs in some other project.

@artemgavrilov
Copy link
Collaborator Author

I agree that it should be consistently named of course, but is add/delete the pair we want to go with rather than add/remove? I recall you mentioning you had a naming scheme for such pairs in some other project.

My take here related to fact that function named tde_smgr_delete_key, but record type is XLOG_TDE_REMOVE_RELATION_KEY.

Logically it looks like it should be vice versa, principal key should be removed, as it continue to exist in key management system and relation key should be deleted, as it no longer exists.

@AndersAstrand
Copy link
Collaborator

I agree that it should be consistently named of course, but is add/delete the pair we want to go with rather than add/remove? I recall you mentioning you had a naming scheme for such pairs in some other project.

My take here related to fact that function named tde_smgr_delete_key, but record type is XLOG_TDE_REMOVE_RELATION_KEY.

Logically it looks like it should be vice versa, principal key should be removed, as it continue to exist in key management system and relation key should be deleted, as it no longer exists.

Yeah we're really inconsistent with this as the function that emits the ADD record is called create. Good catch with the missing description!

@artemgavrilov artemgavrilov merged commit f661cad into TDE_REL_17_STABLE Jun 12, 2025
16 checks passed
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