-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
ThomasWaldmann
wants to merge
4
commits into
borgbackup:master
Choose a base branch
from
ThomasWaldmann:remove-chunks-healthy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Item: remove .chunks_healthy, fixes #8559 #8568
ThomasWaldmann
wants to merge
4
commits into
borgbackup:master
from
ThomasWaldmann:remove-chunks-healthy
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88fe437
to
9ed75ca
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8568 +/- ##
==========================================
+ Coverage 81.83% 81.91% +0.07%
==========================================
Files 74 74
Lines 13319 13318 -1
Branches 1963 1964 +1
==========================================
+ Hits 10900 10909 +9
+ Misses 1755 1749 -6
+ Partials 664 660 -4 ☔ View full report in Codecov by Sentry. |
b0b3455
to
d99598c
Compare
2a7df01
to
69d504d
Compare
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]
69d504d
to
8c4890e
Compare
preloading: always use raise_missing=False, because the behaviour is defined at preloading time. fetch_many: use get_many with raise_missing=False. if get_many yields None instead of the expected chunk cdata bytes, on-the-fly create an all-zero replacement chunk of the correct size (if the size is known) and emit an error msg about the missing chunk id / size. note: for borg recreate with re-chunking this is a bit unpretty, because it will transform a missing chunk into a zero bytes range in the target file in the recreated archive. it will emit an error message at recreate time, but afterwards the recreated archive will not "know" about the problem any more and will just have that zero-patched file. so guess borg recreate with re-chunking should better only be used on repos that do not miss chunks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Well, it's not totally removed, some code in
Item
,archive
andborg 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 (depending on allow_damaged_files option)
extract, diff, ...: fetch_many() will on-the-fly create all-zero replacement chunks (of correct size, if size is known) if it gets a None result (not: bytes chunk cdata) from repo.get() because a chunk is missing. it will also emit an ERROR about the missing chunk, with chunk id and size.
Also fixes: #8562