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

blobovnicza: Fix write error at zero depth #2454

Conversation

cthulhu-rider
Copy link
Contributor

well, we're willing to get rid of complex blobovnicza tree. But this fix is simple, and it's needed to benchmark flat list of DBs within #2453

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #2454 (18dc4b0) into master (f751d71) will increase coverage by 0.03%.
The diff coverage is 60.37%.

❗ Current head 18dc4b0 differs from pull request most recent head be4bbfb. Consider uploading reports for the commit be4bbfb to get more accurate results

@@            Coverage Diff             @@
##           master    #2454      +/-   ##
==========================================
+ Coverage   29.41%   29.44%   +0.03%     
==========================================
  Files         399      399              
  Lines       30346    30385      +39     
==========================================
+ Hits         8925     8946      +21     
- Misses      20680    20696      +16     
- Partials      741      743       +2     
Files Changed Coverage Δ
pkg/local_object_storage/engine/metrics.go 0.00% <ø> (ø)
pkg/local_object_storage/engine/shards.go 68.53% <0.00%> (-1.98%) ⬇️
pkg/local_object_storage/shard/shard.go 65.18% <45.45%> (-4.12%) ⬇️
pkg/local_object_storage/metabase/delete.go 74.86% <64.28%> (-0.41%) ⬇️
...object_storage/blobstor/blobovniczatree/iterate.go 86.84% <100.00%> (+0.17%) ⬆️
pkg/local_object_storage/shard/control.go 76.19% <100.00%> (ø)
pkg/local_object_storage/shard/delete.go 75.47% <100.00%> (+3.73%) ⬆️
pkg/local_object_storage/shard/put.go 82.85% <100.00%> (+0.50%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Previously, blobovnicza tree with depth=0 (i.e. group of DBs without
subdirectories) failed to write any object. There was a mistake in code
which worked incorrectly for depth=0 particular case.

Fix `iterateDeepest` method iterating over paths to DBs as if they were
directories. From now it passes current directory only.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider force-pushed the bugfix/blobovnicza-tree-zero-depth branch from 2d44249 to be4bbfb Compare July 25, 2023 13:36
@cthulhu-rider cthulhu-rider merged commit 7b86fa2 into nspcc-dev:master Jul 25, 2023
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