Skip to content

Simplify engine shard pool#3797

Merged
roman-khimov merged 3 commits intomasterfrom
simplify-engine-shard-pool
Feb 4, 2026
Merged

Simplify engine shard pool#3797
roman-khimov merged 3 commits intomasterfrom
simplify-engine-shard-pool

Conversation

@roman-khimov
Copy link
Member

No functional changes.

Pool is naturally a part of shardWrapper, this patch simplifies locking and
overall flow related to pools with no real logic changes.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Pure stylistics.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This check was introduced in 21708d5 as a
replacement for "already removed" check, but then putToShard() does the same
check again and returns errExists if we have an object which then leads to
successful put status. Which means that by ignoring the result here we waste
a bit more resources to get to the same result. The suggestion is to stop
doing that and return ok immediately if we know we have the object.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov roman-khimov added this to the v0.52.0 milestone Feb 3, 2026
@roman-khimov roman-khimov added the blocked Can't be done because of something label Feb 3, 2026
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 25.52%. Comparing base (7ddced8) to head (280c631).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
pkg/local_object_storage/engine/put.go 60.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3797      +/-   ##
==========================================
- Coverage   25.57%   25.52%   -0.05%     
==========================================
  Files         660      660              
  Lines       42665    42636      -29     
==========================================
- Hits        10910    10884      -26     
+ Misses      30751    30749       -2     
+ Partials     1004     1003       -1     

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

@roman-khimov roman-khimov modified the milestones: v0.52.0, v0.51.1 Feb 4, 2026
@roman-khimov roman-khimov removed the blocked Can't be done because of something label Feb 4, 2026
@roman-khimov roman-khimov merged commit 827cad9 into master Feb 4, 2026
17 of 22 checks passed
@roman-khimov roman-khimov deleted the simplify-engine-shard-pool branch February 4, 2026 13:56
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