Skip to content
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

check --repair fixes shadow_index (1.2-maint) #7897

Conversation

ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Oct 28, 2023

This is a fix to borg check --repair so it will recreate a complete shadow_index inside the hints file.

Doing that should fix past issues caused by the double-put bug (see #7896) and by the persistence of the shadow index, which is new since borg 1.2.

When running borg in client/server mode (with a remote repo), the fix needs to get applied repo/server-side.

still failing here, because it is not.
before this fix, borg check --repair just created an
empty shadow index, which can lead to incomplete
entries if entries are added later.

and such incomplete (but present) entries can lead to
compact_segments() resurrecting old PUTs by accidentally
dropping related DELs.
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2023

Codecov Report

Merging #7897 (a780942) into 1.2-maint (c35cdde) will decrease coverage by 0.04%.
The diff coverage is 50.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@              Coverage Diff              @@
##           1.2-maint    #7897      +/-   ##
=============================================
- Coverage      82.60%   82.57%   -0.04%     
=============================================
  Files             38       38              
  Lines          10776    10778       +2     
  Branches        2064     2064              
=============================================
- Hits            8902     8900       -2     
- Misses          1327     1329       +2     
- Partials         547      549       +2     
Files Coverage Δ
src/borg/repository.py 83.54% <50.00%> (-0.07%) ⬇️

... and 2 files with indirect coverage changes

@ThomasWaldmann ThomasWaldmann merged commit 55ee4e2 into borgbackup:1.2-maint Nov 3, 2023
11 checks passed
@ThomasWaldmann ThomasWaldmann deleted the check-fixes-shadow-index-1.2 branch November 3, 2023 13:42
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.

2 participants