Skip to content

EC GET/RANGE without linker#3754

Merged
roman-khimov merged 5 commits intomasterfrom
ec-split-no-link
Dec 26, 2025
Merged

EC GET/RANGE without linker#3754
roman-khimov merged 5 commits intomasterfrom
ec-split-no-link

Conversation

@cthulhu-rider
Copy link
Contributor

@evgeniiz321 try this pls

@codecov
Copy link

codecov bot commented Dec 25, 2025

Codecov Report

❌ Patch coverage is 18.58407% with 92 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.84%. Comparing base (e5a4d70) to head (2151aea).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/get/ec.go 2.19% 88 Missing and 1 partial ⚠️
pkg/local_object_storage/engine/ec.go 33.33% 2 Missing ⚠️
pkg/local_object_storage/shard/ec.go 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3754      +/-   ##
==========================================
- Coverage   25.86%   25.84%   -0.03%     
==========================================
  Files         660      660              
  Lines       42213    42318     +105     
==========================================
+ Hits        10920    10938      +18     
- Misses      30290    30377      +87     
  Partials     1003     1003              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//

Make server to check last size-split part when linker is unavailable. If
this is the case, object or its payload range is restored from split
chain.

Closes #3736.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Unlike ResolveECPart(), the only caller of ResolveECPartWithPayloadLen()
is unable to switch execution to linker. This makes the method to return
error on LINK object encounter.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
Refactoring purpose to keep in sync with last size-split child case.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
…n()`

Previously, method returned 404 error if size-split object was requested.
Although this is actually a failure (size-split roots are not
erasure-coded), this error caused handling all shards in
`StorageEngine.GetECPartRange()` instead of abort.

This makes metabase to return split error in described case, and storage
engine to abort on it. As bonus, the method is in sync with
`ResolveECPart()` now.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
@roman-khimov roman-khimov merged commit f0e646f into master Dec 26, 2025
19 of 22 checks passed
@roman-khimov roman-khimov deleted the ec-split-no-link branch December 26, 2025 17:10
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