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

Fix/Storage Group expiration #2167

Merged
merged 3 commits into from
Dec 20, 2022
Merged

Fix/Storage Group expiration #2167

merged 3 commits into from
Dec 20, 2022

Conversation

carpawell
Copy link
Member

Closes #2016.

@carpawell carpawell self-assigned this Dec 20, 2022
@carpawell carpawell marked this pull request as ready for review December 20, 2022 13:35
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #2167 (49b7cf7) into master (509042b) will increase coverage by 0.02%.
The diff coverage is 54.16%.

❗ Current head 49b7cf7 differs from pull request most recent head 58c0e9f. Consider uploading reports for the commit 58c0e9f to get more accurate results

@@            Coverage Diff             @@
##           master    #2167      +/-   ##
==========================================
+ Coverage   30.79%   30.81%   +0.02%     
==========================================
  Files         382      382              
  Lines       28137    28161      +24     
==========================================
+ Hits         8664     8679      +15     
- Misses      18739    18751      +12     
+ Partials      734      731       -3     
Impacted Files Coverage Δ
pkg/local_object_storage/shard/head.go 69.23% <ø> (-1.36%) ⬇️
pkg/local_object_storage/writecache/delete.go 0.00% <0.00%> (ø)
pkg/local_object_storage/writecache/storage.go 23.75% <0.00%> (-2.64%) ⬇️
pkg/local_object_storage/writecache/writecache.go 77.08% <ø> (ø)
pkg/local_object_storage/shard/get.go 86.66% <75.00%> (+8.33%) ⬆️
pkg/local_object_storage/writecache/init.go 94.28% <100.00%> (+0.73%) ⬆️
pkg/local_object_storage/writecache/put.go 71.42% <100.00%> (+5.57%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
Pavel Karpy added 2 commits December 20, 2022 17:27
Both `meta` and `write-cache` are expected to have a fast underlying disk,
so it does not seem like an optimisation. Moreover, `write-cache`'s `Head`
is a `Get` with payload cutting, it _must_ use more memory for no reason
(`meta` was created for such requests). Also, `write-cache` does not allow
performing any "meta" relations checks (such as locking, tombstoning).

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
`meta` should prevent returning removed objects (`GCMark` and `TS` relations
are `meta` abstractions).

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
@fyrchik fyrchik merged commit 60b3eaf into nspcc-dev:master Dec 20, 2022
@carpawell carpawell deleted the fix/sg-expiration branch December 20, 2022 15:59
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.

Storage group wasn't deleted after lifetime was expired
3 participants