Skip to content

Conversation

@cthulhu-rider
Copy link
Contributor

No description provided.

@cthulhu-rider cthulhu-rider force-pushed the ec-part-recreation branch 3 times, most recently from 2cde16f to bedbf70 Compare October 14, 2025 15:48
@cthulhu-rider cthulhu-rider force-pushed the ec-part-recreation branch 6 times, most recently from 1263882 to 7d18369 Compare October 22, 2025 15:57
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 30.98859% with 363 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.01%. Comparing base (86161a2) to head (453ddf1).

Files with missing lines Patch % Lines
pkg/services/policer/ec.go 20.31% 248 Missing and 7 partials ⚠️
pkg/services/object/head/remote.go 0.00% 57 Missing ⚠️
internal/ec/ec.go 0.00% 13 Missing ⚠️
pkg/services/object/get/get.go 9.09% 8 Missing and 2 partials ⚠️
pkg/services/object/get/ec.go 0.00% 9 Missing ⚠️
pkg/services/replicator/process.go 0.00% 9 Missing ⚠️
pkg/services/policer/policer.go 41.66% 6 Missing and 1 partial ⚠️
pkg/metrics/engine.go 81.81% 2 Missing ⚠️
cmd/neofs-node/object.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3628      +/-   ##
==========================================
+ Coverage   26.97%   27.01%   +0.04%     
==========================================
  Files         656      656              
  Lines       51273    51785     +512     
==========================================
+ Hits        13831    13990     +159     
- Misses      36380    36723     +343     
- Partials     1062     1072      +10     

☔ 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.

Extend `Policer` with workers checking availability of EC parts. Free
worker takes the job each time some EC part is processed by regular
Policer routine. If no more than N parts are unavailable (where N is a
number of parity parts in the container policy), they are recreated
using available ones. Recreated object has the same ID but signed by SN
itself. To ensure such objects are accepted, the corresponding checks
are relaxed for EC parts.

Closes #3554.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider marked this pull request as ready for review October 22, 2025 17:06
cthulhu-rider added a commit that referenced this pull request Oct 24, 2025
The session token is in the parent object, but in the part it is
meaningless. Moreover, if the part object needs to be recreated, the
session token will no longer exist. Therefore, not adding a token
preserves the object ID which is good for deduplication.

For this to work, it was necessary to make an exception when checking
the signature against the object owner.

Refs #3628.

Signed-off-by: Leonard Lyubich <[email protected]>
cthulhu-rider added a commit that referenced this pull request Oct 24, 2025
The session token is in the parent object, but in the part it is
meaningless. Moreover, if the part object needs to be recreated, the
session token will no longer exist. Therefore, not adding a token
preserves the object ID which is good for deduplication.

For this to work, it was necessary to make an exception when checking
the signature against the object owner.

Refs #3628.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider
Copy link
Contributor Author

lets handle #3651 first

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.

1 participant