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

Locked object can be deleted on one extra epoch away from lock expiration #2097

Closed
abereziny opened this issue Nov 24, 2022 · 2 comments · Fixed by #2169
Closed

Locked object can be deleted on one extra epoch away from lock expiration #2097

abereziny opened this issue Nov 24, 2022 · 2 comments · Fixed by #2169
Assignees
Labels
bug Something isn't working U4 Nothing urgent

Comments

@abereziny
Copy link

abereziny commented Nov 24, 2022

Let say we have:

  1. Current epoch is 100
  2. Object is put to the container
  3. Object is locked with lock with expiration at epoch 101

Steps:

  1. Tick epoch, current epoch becomes 101
  2. Try to delete object

Expected Behavior

Object should be removed since lock expired at current epoch

Current Behavior

Object cannot be removed and treated as locked object until next extra epoch is ticked

Tests

@alexchetaev alexchetaev added the bug Something isn't working label Dec 16, 2022
@acid-ant
Copy link
Contributor

@abereziny it works as expected. Fixed help message for parameter here #2169. I've added one extra epoch tick and test passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working U4 Nothing urgent
Projects
None yet
3 participants