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

relax chunker params validation, tests (1.2-maint) #7589

Merged

Conversation

ThomasWaldmann
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented May 19, 2023

Codecov Report

Merging #7589 (af042b9) into 1.2-maint (ce50796) will decrease coverage by 0.09%.
The diff coverage is 40.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@              Coverage Diff              @@
##           1.2-maint    #7589      +/-   ##
=============================================
- Coverage      82.42%   82.33%   -0.09%     
=============================================
  Files             38       38              
  Lines          10628    10632       +4     
  Branches        2040     2041       +1     
=============================================
- Hits            8760     8754       -6     
- Misses          1328     1333       +5     
- Partials         540      545       +5     
Impacted Files Coverage Δ
src/borg/helpers/parseformat.py 88.49% <40.00%> (-1.23%) ⬇️

... and 2 files with indirect coverage changes

@ThomasWaldmann ThomasWaldmann changed the title chunker params (1.2-maint) relax chunker params validation, tests (1.2-maint) May 19, 2023
we previously allowed some weird chunker params, so we just warn
about them instead of rejecting them.

e.g. one could use super small chunk sizes. borg can do that,
but you'll end up with a huge amount of chunks and very large
hash tables (RAM usage) to manage them.

also, one can violate the min <= mask <= max chunker param condition
as in borgbackup#7590 and it will somehow work, but will likely not dedup as good
as when not violating that.

borg2 **will** reject such strange chunker params, see borgbackup#7586 for
some ideas how to "fix" your repos.
@ThomasWaldmann
Copy link
Member Author

forward port: guess we only want to port the new test: test_buzhash_chunksize_distribution

@ThomasWaldmann ThomasWaldmann merged commit 53bedfb into borgbackup:1.2-maint May 19, 2023
@ThomasWaldmann ThomasWaldmann deleted the chunker-params-1.2 branch May 19, 2023 17:19
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