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

shard: drop more of context from local stores #2946

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

roman-khimov
Copy link
Member

Similar to edc447f, we can't have any meaninful context here and current context checks are broken. Fixes #1911, the last case of

Error in cmd/neofs-node/config.go: Function Reload->Init->init->listenEvents should pass the context parameter.

goes away with this.

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.88%. Comparing base (a0447ce) to head (54494ac).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2946   +/-   ##
=======================================
  Coverage   23.88%   23.88%           
=======================================
  Files         776      776           
  Lines       45893    45888    -5     
=======================================
  Hits        10961    10961           
+ Misses      34070    34065    -5     
  Partials      862      862           

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

@@ -324,7 +323,7 @@ func (e *StorageEngine) isLocked(addr oid.Address) (bool, error) {
return locked, outErr
}

func (e *StorageEngine) processExpiredObjects(_ context.Context, addrs []oid.Address) {
Copy link
Member

Choose a reason for hiding this comment

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

tbh, i am not sure it should never be used there. expired object handling can be interrupted, and an expired now object will still be expired in every next epoch, so if we are about to stop working, such operation is safe to stop immediately. however, none of the current "iteration" storage engine operations supports context so ok

pkg/local_object_storage/shard/gc.go Outdated Show resolved Hide resolved
Similar to edc447f, we can't have any
meaninful context here and current context checks are broken. Fixes #1911,
the last case of

  Error in `cmd/neofs-node/config.go`: `Function `Reload->Init->init->listenEvents` should pass the context parameter`.

goes away with this.

Signed-off-by: Roman Khimov <[email protected]>
@carpawell carpawell merged commit 8340d68 into master Sep 23, 2024
20 of 21 checks passed
@carpawell carpawell deleted the context-unreleased branch September 23, 2024 19:58
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.

Add contextcheck linter
3 participants