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/Locked but expired objects #2535

Merged

Conversation

carpawell
Copy link
Member

No description provided.

@carpawell carpawell self-assigned this Aug 29, 2023
@carpawell
Copy link
Member Author

It waits #2526 but some changes will be also added.

@carpawell carpawell force-pushed the fix/locked-but-expired-objects branch from aef3c9d to 037ee9f Compare August 31, 2023 23:51
@carpawell carpawell marked this pull request as ready for review August 31, 2023 23:52
It will allow reusing that method in expiration checks.

Signed-off-by: Pavel Karpy <[email protected]>
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #2535 (0d46fac) into master (9871712) will increase coverage by 0.25%.
Report is 4 commits behind head on master.
The diff coverage is 36.80%.

❗ Current head 0d46fac differs from pull request most recent head 48fbe5c. Consider uploading reports for the commit 48fbe5c to get more accurate results

@@            Coverage Diff             @@
##           master    #2535      +/-   ##
==========================================
+ Coverage   29.66%   29.91%   +0.25%     
==========================================
  Files         405      405              
  Lines       30756    30880     +124     
==========================================
+ Hits         9123     9239     +116     
+ Misses      20863    20854       -9     
- Partials      770      787      +17     
Files Changed Coverage Δ
cmd/neofs-node/object.go 0.00% <0.00%> (ø)
pkg/local_object_storage/metabase/select.go 65.01% <0.00%> (-13.24%) ⬇️
pkg/local_object_storage/shard/gc.go 50.19% <42.30%> (+27.25%) ⬆️
pkg/local_object_storage/metabase/lock.go 64.51% <54.71%> (-1.84%) ⬇️
pkg/core/object/fmt.go 69.38% <84.61%> (+1.98%) ⬆️
pkg/local_object_storage/engine/inhume.go 61.19% <100.00%> (+2.46%) ⬆️

... and 5 files with indirect coverage changes

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

📢 Have feedback on the report? Share it here.

Allow replication of any (expired too) locked object. Information about
object locking is considered to be presented on the _container nodes_.
Refs. nspcc-dev#2392.

Signed-off-by: Pavel Karpy <[email protected]>
@carpawell carpawell force-pushed the fix/locked-but-expired-objects branch 2 times, most recently from 8ee6a17 to ce5e8ce Compare September 1, 2023 13:35
An object can be expired but locked (and not removed, of course). After the LOCK
object expiration, the object should be unlocked and, therefore, become
unavailable immediately not by the next GC cycle time.
Closes nspcc-dev#2392.

Signed-off-by: Pavel Karpy <[email protected]>
Locked objects are prohibited to be removed by a user operation so `Force`
should be applied to the expired LOCK objects.

Signed-off-by: Pavel Karpy <[email protected]>
@roman-khimov roman-khimov merged commit 7c3a03f into nspcc-dev:master Sep 8, 2023
7 of 8 checks passed
@carpawell carpawell deleted the fix/locked-but-expired-objects branch September 8, 2023 10:01
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this pull request Oct 6, 2023
…expired

Unskiped test_expired_object_should_be_deleted_after_locks_are_expired, since
the bug is fixed in commit nspcc-dev/neofs-node#2535

Signed-off-by: Oleg Kulachenko <[email protected]>
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