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

Item: remove .chunks_healthy, fixes #8559 #8568

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Nov 25, 2024

Well, it's not totally removed, some code in Item, archive and borg transfer --from-borg1 needs to stay in place, so that we can pick the CORRECT chunks list that is in .chunks_healthy for all-zero-replacement-chunk-patched items when transferring archives from borg1 to borg2 repos.

FUSE fs read: IOError or all-zero result

Other reads: TODO

Also fixes: #8562

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 18 lines in your changes missing coverage. Please review.

Project coverage is 81.89%. Comparing base (1559a1e) to head (69d504d).
Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
src/borg/archiver/transfer_cmd.py 59.09% 7 Missing and 2 partials ⚠️
src/borg/archive.py 86.95% 1 Missing and 2 partials ⚠️
src/borg/legacyrepository.py 66.66% 1 Missing and 1 partial ⚠️
src/borg/repository.py 66.66% 1 Missing and 1 partial ⚠️
src/borg/archiver/compact_cmd.py 83.33% 1 Missing ⚠️
src/borg/remote.py 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8568      +/-   ##
==========================================
+ Coverage   81.83%   81.89%   +0.05%     
==========================================
  Files          74       74              
  Lines       13319    13315       -4     
  Branches     1963     1963              
==========================================
+ Hits        10900    10904       +4     
+ Misses       1755     1750       -5     
+ Partials      664      661       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann ThomasWaldmann force-pushed the remove-chunks-healthy branch 2 times, most recently from b0b3455 to d99598c Compare December 28, 2024 17:46
Well, it's not totally removed, some code in Item, Archive and
borg transfer --from-borg1 needs to stay in place, so that we
can pick the CORRECT chunks list that is in .chunks_healthy
for all-zero-replacement-chunk-patched items when transferring
archives from borg1 to borg2 repos.

transfer: do not transfer replacement chunks, deal with missing chunks in other_repo

FUSE fs read: IOError or all-zero result
it now takes either:
- a list of ChunkListEntry namedtuples
- a list of chunk IDs [bytes]
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.

borg2: cosmetic bug in compact
1 participant