Deleted COMPLEX object can be found in container (frostfs-cli object search --root) #1010

Closed
opened 2024-02-28 07:59:42 +00:00 by anikeev-yadro · 1 comment
Member

Related to #799

Expected Behavior

Deleted object can't be found in container using following 'neofs-cli object search --root' command

Current Behavior

Deleted object can found in container using following 'neofs-cli object search --root' command

Steps to Reproduce (for bugs)

1.Create container

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' --timeout '100s'
RETCODE: 0

STDOUT:
container ID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3
awaiting...
container has been persisted on sidechain

STDERR:

Start / End / Elapsed	 00:46:00.948626 / 00:46:02.325492 / 0:00:01.376866

2.Put object

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --file 'TemporaryDir/45b4f53a-5272-40d3-aafe-3ec5102f91cd' --no-progress --timeout '100s'
RETCODE: 0

STDOUT:
[TemporaryDir/45b4f53a-5272-40d3-aafe-3ec5102f91cd] Object successfully stored
  OID: 3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8
  CID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3

STDERR:

Start / End / Elapsed	 00:46:02.832282 / 00:46:03.936460 / 0:00:01.104178

3.Delete object

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object delete --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --oid '3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8' --timeout '100s'
RETCODE: 0

STDOUT:
Object removed successfully.
  ID: 54X2XQCXZjpHRGs41xXL2GnKSq3BwRF72uko797WVPiV
  CID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3

STDERR:

Start / End / Elapsed	 00:46:04.306264 / 00:46:04.808374 / 0:00:00.502110

4.Tick epoch and verify that object was deleted

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object get --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --oid '3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8' --file 'TemporaryDir/c9641cc5-fd0c-48b4-b883-cc8befd133b7' --no-progress --timeout '100s'
RETCODE: 1

STDOUT:
rpc error: read object header: status: code = 2052 message = object already removed

STDERR:

Start / End / Elapsed	 00:46:28.735371 / 00:46:29.099515 / 0:00:00.364144

5.Try to find deleted object

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object search --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --root --timeout '100s'
RETCODE: 0

STDOUT:
Found 1 objects.
3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8

STDERR:

Start / End / Elapsed	 00:46:29.102082 / 00:46:29.468338 / 0:00:00.366256

Context

This was autimatic test testsuites.object.test_object_api.TestObjectApi#test_object_search_should_return_tombstone_items

Regression

Yes

Version

FrostFS Storage node
Version: v0.37.0-26-g2bfaa654
GoVersion: go1.20.1

##Your Environment
4 nodes
Virtual

Related to https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/799 ## Expected Behavior Deleted object can't be found in container using following 'neofs-cli object search --root' command ## Current Behavior Deleted object can found in container using following 'neofs-cli object search --root' command ## Steps to Reproduce (for bugs) 1.Create container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' --timeout '100s' RETCODE: 0 STDOUT: container ID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3 awaiting... container has been persisted on sidechain STDERR: Start / End / Elapsed 00:46:00.948626 / 00:46:02.325492 / 0:00:01.376866 ``` 2.Put object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --file 'TemporaryDir/45b4f53a-5272-40d3-aafe-3ec5102f91cd' --no-progress --timeout '100s' RETCODE: 0 STDOUT: [TemporaryDir/45b4f53a-5272-40d3-aafe-3ec5102f91cd] Object successfully stored OID: 3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8 CID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3 STDERR: Start / End / Elapsed 00:46:02.832282 / 00:46:03.936460 / 0:00:01.104178 ``` 3.Delete object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object delete --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --oid '3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8' --timeout '100s' RETCODE: 0 STDOUT: Object removed successfully. ID: 54X2XQCXZjpHRGs41xXL2GnKSq3BwRF72uko797WVPiV CID: 3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3 STDERR: Start / End / Elapsed 00:46:04.306264 / 00:46:04.808374 / 0:00:00.502110 ``` 4.Tick epoch and verify that object was deleted ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object get --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --oid '3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8' --file 'TemporaryDir/c9641cc5-fd0c-48b4-b883-cc8befd133b7' --no-progress --timeout '100s' RETCODE: 1 STDOUT: rpc error: read object header: status: code = 2052 message = object already removed STDERR: Start / End / Elapsed 00:46:28.735371 / 00:46:29.099515 / 0:00:00.364144 ``` 5.Try to find deleted object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/wallet_config.yml object search --rpc-endpoint '172.26.161.151:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.Wbjyf1Xu5N/frostfs-testcases/TemporaryDir/44d1043d-3297-42a7-be50-ff6eb4fe3dbb.json' --cid '3cNR3rUyEFLtTkfe6G2GpX3SeUDV6V81fSaJRgxcLTp3' --root --timeout '100s' RETCODE: 0 STDOUT: Found 1 objects. 3joZh8rGE2hXaf6kVvYBJLuop8hitkQoQC52ygvdcbX8 STDERR: Start / End / Elapsed 00:46:29.102082 / 00:46:29.468338 / 0:00:00.366256 ``` ## Context This was autimatic `test testsuites.object.test_object_api.TestObjectApi#test_object_search_should_return_tombstone_items` ## Regression Yes ## Version ``` FrostFS Storage node Version: v0.37.0-26-g2bfaa654 GoVersion: go1.20.1 ``` ##Your Environment 4 nodes Virtual
anikeev-yadro added the
bug
triage
labels 2024-02-28 07:59:42 +00:00

Fixed with #799

Fixed with https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/799
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#1010
No description provided.