Expired object wasn't deleted after locks are expired for complex object #332

Closed
opened 2023-05-10 07:31:19 +00:00 by anikeev-yadro · 0 comments

Autotest

testsuites.object.test_object_lock.TestObjectLockWithGrpc#test_expired_object_should_be_deleted_after_locks_are_expired

Expected Behavior

Expired object should be deleted after locks are expired for complex object

Current Behavior

Expired object wasn't deleted after locks are expired for complex object

Steps to Reproduce (for bugs)

1.Create object

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.160.249:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --file '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/6f575827-2823-43c1-81fa-64aeede7f64b' --expire-at 28 --no-progress
RETCODE: 0

STDOUT:
[/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/6f575827-2823-43c1-81fa-64aeede7f64b] Object successfully stored
  OID: SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK
  CID: ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f

STDERR:

Start / End / Elapsed	 02:33:12.377843 / 02:33:16.957251 / 0:00:04.579408

2.Lock object

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object lock --rpc-endpoint '172.26.160.246:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --oid 'SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK' --expire-at 29
RETCODE: 0

STDOUT:
Lock object ID: 7xZPn1omsHbQQCajPSoarqrLtGnQcfaTPVHGV3337LrY
Objects successfully locked.

STDERR:

Start / End / Elapsed	 02:33:17.438861 / 02:33:18.006272 / 0:00:00.567411

3.Tick epoch

HOST: 172.26.160.246
COMMAND:
 sudo frostfs-adm --config /home/service/config.yaml morph force-new-epoch 
RC:
 0
STDOUT:
 Current epoch: 29, increase to 30.
 Waiting for transactions to persist...

STDERR:

Start / End / Elapsed	 02:34:49.307101 / 02:35:02.254851 / 0:00:12.947750

4.Object wasn't deleted

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object head --rpc-endpoint '172.26.160.246:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --oid 'SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK' --json
RETCODE: 0

STDOUT:
{"objectID":{"value":"BqeRicG0b4GWJEzZSdPKnto3jjpsG/n5qF/4FJfwOPQ="}, "signature":{"key":"Ar52VQnOihhl8ZiHlDirnd7boJguEQ35gUfynL15lsBU", "signature":"BDzCHRVWtzUxixJfefRbAibaJuPY582LsJnjN6/RX2D+yAb8/nbJvIqza8StWn0TYFOIEWGOTid7K9O1xL6EhNY=", "scheme":"ECDSA_SHA512"}, "header":{"version":{"major":2, "minor":13}, "containerID":{"value":"iOABNqeZwOYI9cvCkGGzzphMTtqcpXuowhQNFGh2aXY="}, "ownerID":{"value":"NaMGwMjZaih6CTQyi6YAb9wi6iKvlO3/1Q=="}, "creationEpoch":"27", "payloadLength":"201327592", "payloadHash":{"type":"SHA256", "sum":"/csSf931bS2pscJ+tlktBXKV64I68cSPyLyuYKfomAk="}, "objectType":"REGULAR", "homomorphicHash":null, "sessionToken":{"body":{"id":"mhjkBibDTMKiyvGm+2xKng==", "ownerID":{"value":"NaMGwMjZaih6CTQyi6YAb9wi6iKvlO3/1Q=="}, "lifetime":{"exp":"37", "nbf":"27", "iat":"27"}, "sessionKey":"Ar52VQnOihhl8ZiHlDirnd7boJguEQ35gUfynL15lsBU", "object":{"verb":"PUT", "target":{"container":{"value":"iOABNqeZwOYI9cvCkGGzzphMTtqcpXuowhQNFGh2aXY="}, "objects":[]}}}, "signature":{"key":"A+O2bIKSYtwPVVwjWbYThhpNWhsB3YIZAEgj9EhY+aVu", "signature":"BIVIyA2LO0E+T7EcOVmIEsVWHTWp3ZIv3KPmFGokv1oPZHer7w9YV9DQiLCNyuFw17J+cYqlwZ3aofoQ0K13icw=", "scheme":"ECDSA_SHA512"}}, "attributes":[{"key":"FileName", "value":"6f575827-2823-43c1-81fa-64aeede7f64b"}, {"key":"Timestamp", "value":"1683081192"}, {"key":"__SYSTEM__EXPIRATION_EPOCH", "value":"28"}], "split":null}, "payload":""}

STDERR:

Start / End / Elapsed	 02:36:16.962606 / 02:36:17.330669 / 0:00:00.368063

Version

0.0.1-413-g0beb7ccf

Your Environment

Virtual

## Autotest testsuites.object.test_object_lock.TestObjectLockWithGrpc#test_expired_object_should_be_deleted_after_locks_are_expired ## Expected Behavior Expired object should be deleted after locks are expired for complex object ## Current Behavior Expired object wasn't deleted after locks are expired for complex object ## Steps to Reproduce (for bugs) 1.Create object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.160.249:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --file '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/6f575827-2823-43c1-81fa-64aeede7f64b' --expire-at 28 --no-progress RETCODE: 0 STDOUT: [/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/6f575827-2823-43c1-81fa-64aeede7f64b] Object successfully stored OID: SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK CID: ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f STDERR: Start / End / Elapsed 02:33:12.377843 / 02:33:16.957251 / 0:00:04.579408 ``` 2.Lock object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object lock --rpc-endpoint '172.26.160.246:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --oid 'SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK' --expire-at 29 RETCODE: 0 STDOUT: Lock object ID: 7xZPn1omsHbQQCajPSoarqrLtGnQcfaTPVHGV3337LrY Objects successfully locked. STDERR: Start / End / Elapsed 02:33:17.438861 / 02:33:18.006272 / 0:00:00.567411 ``` 3.Tick epoch ``` HOST: 172.26.160.246 COMMAND: sudo frostfs-adm --config /home/service/config.yaml morph force-new-epoch RC: 0 STDOUT: Current epoch: 29, increase to 30. Waiting for transactions to persist... STDERR: Start / End / Elapsed 02:34:49.307101 / 02:35:02.254851 / 0:00:12.947750 ``` 4.Object wasn't deleted ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/wallet_config.yml object head --rpc-endpoint '172.26.160.246:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.df3y2M7wv7/frostfs-testcases/TemporaryDir/a6fd1998-59a0-4cf8-9749-a226f8251c00.json' --cid 'ADJZMX2bshu728Qf3hnd8UAwX74zxJRyd6XtcRtStZ5f' --oid 'SyePX2ChSZY4jZxCZqhkRDBTsWnK7BNs7tJsSYYYagK' --json RETCODE: 0 STDOUT: {"objectID":{"value":"BqeRicG0b4GWJEzZSdPKnto3jjpsG/n5qF/4FJfwOPQ="}, "signature":{"key":"Ar52VQnOihhl8ZiHlDirnd7boJguEQ35gUfynL15lsBU", "signature":"BDzCHRVWtzUxixJfefRbAibaJuPY582LsJnjN6/RX2D+yAb8/nbJvIqza8StWn0TYFOIEWGOTid7K9O1xL6EhNY=", "scheme":"ECDSA_SHA512"}, "header":{"version":{"major":2, "minor":13}, "containerID":{"value":"iOABNqeZwOYI9cvCkGGzzphMTtqcpXuowhQNFGh2aXY="}, "ownerID":{"value":"NaMGwMjZaih6CTQyi6YAb9wi6iKvlO3/1Q=="}, "creationEpoch":"27", "payloadLength":"201327592", "payloadHash":{"type":"SHA256", "sum":"/csSf931bS2pscJ+tlktBXKV64I68cSPyLyuYKfomAk="}, "objectType":"REGULAR", "homomorphicHash":null, "sessionToken":{"body":{"id":"mhjkBibDTMKiyvGm+2xKng==", "ownerID":{"value":"NaMGwMjZaih6CTQyi6YAb9wi6iKvlO3/1Q=="}, "lifetime":{"exp":"37", "nbf":"27", "iat":"27"}, "sessionKey":"Ar52VQnOihhl8ZiHlDirnd7boJguEQ35gUfynL15lsBU", "object":{"verb":"PUT", "target":{"container":{"value":"iOABNqeZwOYI9cvCkGGzzphMTtqcpXuowhQNFGh2aXY="}, "objects":[]}}}, "signature":{"key":"A+O2bIKSYtwPVVwjWbYThhpNWhsB3YIZAEgj9EhY+aVu", "signature":"BIVIyA2LO0E+T7EcOVmIEsVWHTWp3ZIv3KPmFGokv1oPZHer7w9YV9DQiLCNyuFw17J+cYqlwZ3aofoQ0K13icw=", "scheme":"ECDSA_SHA512"}}, "attributes":[{"key":"FileName", "value":"6f575827-2823-43c1-81fa-64aeede7f64b"}, {"key":"Timestamp", "value":"1683081192"}, {"key":"__SYSTEM__EXPIRATION_EPOCH", "value":"28"}], "split":null}, "payload":""} STDERR: Start / End / Elapsed 02:36:16.962606 / 02:36:17.330669 / 0:00:00.368063 ``` ## Version 0.0.1-413-g0beb7ccf ## Your Environment Virtual
anikeev-yadro added the
bug
triage
labels 2023-05-10 07:31:19 +00:00
dstepanov-yadro self-assigned this 2023-05-10 08:18:50 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 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#332
There is no content yet.