Skip to content

Improve object deletion via control service#3727

Merged
roman-khimov merged 4 commits intomasterfrom
metabase-delete
Dec 10, 2025
Merged

Improve object deletion via control service#3727
roman-khimov merged 4 commits intomasterfrom
metabase-delete

Conversation

@roman-khimov
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

❌ Patch coverage is 15.58442% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.88%. Comparing base (e2ec90e) to head (a4377ba).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/control/service_grpc.pb.go 0.00% 42 Missing ⚠️
pkg/services/control/ir/service_grpc.pb.go 0.00% 15 Missing ⚠️
pkg/local_object_storage/engine/delete.go 50.00% 2 Missing and 2 partials ⚠️
pkg/metrics/engine.go 80.00% 2 Missing ⚠️
cmd/neofs-cli/modules/control/drop_objects.go 0.00% 1 Missing ⚠️
pkg/services/control/server/gc.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3727   +/-   ##
=======================================
  Coverage   26.87%   26.88%           
=======================================
  Files         658      658           
  Lines       41828    41861   +33     
=======================================
+ Hits        11242    11254   +12     
- Misses      29549    29568   +19     
- Partials     1037     1039    +2     

☔ 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 changed the title Improve control service deletion Improve object deletion via control service Dec 10, 2025
Copy link
Contributor

@cthulhu-rider cthulhu-rider left a comment

Choose a reason for hiding this comment

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

seems good

@roman-khimov
Copy link
Member Author

Tests are subject to nspcc-dev/neofs-testcases#1236

Obsolete since fa9347b, t.TempDir() solves
the problem completely.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This actually reveals a bug in TestErrorReporting, corrupted directories were
never properly removed.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Delayed removal incurs some additional penalty (writing to metabase) and also
can leave the object in storage for unknown time (GC can be busy). Control
service is used only for emergency cases where direct removal is likely to
be more beneficial.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Drop useless code.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
@roman-khimov
Copy link
Member Author

Fixed CHANGELOG conflict after #3726.

@roman-khimov roman-khimov merged commit 7fca8a8 into master Dec 10, 2025
17 of 22 checks passed
@roman-khimov roman-khimov deleted the metabase-delete branch December 10, 2025 14:28
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