The second lock is not installed on simple objects #611

Closed
opened 2023-08-15 13:46:23 +00:00 by ChEktn · 1 comment
Member

Expected Behavior

Case:

Epoch 9: Object A expires at epoch 10
Epoch 9: Lock for A with expiration=12.
Epoch 11: Lock for A with expiration=14, previous lock still available.
Epoch 13: Lock for A with expiration=16, previous lock still available, but the first one is not.
Epoch 17: Object is removed.

Current Behavior

A simple object was not found when installing the second lock.
(Epoch 11: Lock for A with expiration=14)

RuntimeError: Command: frostfs-cli --config '' object lock --rpc-endpoint '' --wallet '' --cid '4PVAbemcA9AV9R4Nb2igzeSRa99CZMfVsvTmRz16azPQ' --oid 'DZfE9Wyo9TN4RNMvrfE5HVET6ZJ9tSaRyw8hgQZepGTY' --expire-at 1270
Error:
return code: 1
output: failed to get raw object header: read object header via client: status: code = 2049 message = object not found

Context

frostfs-testcases/pytest_tests/testsuites/object/test_object_lock.py

Expired object should be removes after relocks are expired for simple object

Your Environment

  • Version used: Cloud v1.3.0-65
<!-- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!-- If you're describing a bug, tell us what should happen If you're suggesting a change/improvement, tell us how it should work --> Case: Epoch 9: Object A expires at epoch 10 Epoch 9: Lock for A with expiration=12. Epoch 11: Lock for A with expiration=14, previous lock still available. Epoch 13: Lock for A with expiration=16, previous lock still available, but the first one is not. Epoch 17: Object is removed. ## Current Behavior <!-- If describing a bug, tell us what happens instead of the expected behavior If suggesting a change/improvement, explain the difference from current behavior --> A simple object was not found when installing the second lock. (Epoch 11: Lock for A with expiration=14) RuntimeError: Command: frostfs-cli --config '' object lock --rpc-endpoint '' --wallet '' --cid '4PVAbemcA9AV9R4Nb2igzeSRa99CZMfVsvTmRz16azPQ' --oid 'DZfE9Wyo9TN4RNMvrfE5HVET6ZJ9tSaRyw8hgQZepGTY' --expire-at 1270 Error: return code: 1 output: failed to get raw object header: read object header via client: status: code = 2049 message = object not found ## Context <!-- How has this issue affected you? What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world --> frostfs-testcases/pytest_tests/testsuites/object/test_object_lock.py Expired object should be removes after relocks are expired for simple object ## Your Environment <!-- Include as many relevant details about the environment you experienced the bug in --> * Version used: Cloud v1.3.0-65
ChEktn added the
bug
triage
labels 2023-08-15 13:46:23 +00:00
ChEktn changed title from Extend tests for LOCK objects to The second lock is not installed on simple objects 2023-08-15 13:56:50 +00:00
acid-ant was assigned by fyrchik 2023-08-16 07:03:32 +00:00
fyrchik added this to the v0.37.0 milestone 2023-08-17 12:24:00 +00:00
Owner

Could not reproduce

Could not reproduce
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#611
No description provided.