Range hash from system not equal to range hash from uploaded file on simple and complex objects #702

Closed
opened 2023-09-21 11:05:09 +00:00 by anikeev-yadro · 0 comments
Member

autotest

testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash

Expected Behavior

Range hash from system should be equal to range hash from uploaded file on simple and complex objects

Current Behavior

Range hash from system not equal to range hash from uploaded file on simple and complex objects

Possible Solution

Steps to Reproduce (for bugs)

  1. Create container
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X'
RETCODE: 0

STDOUT:
container ID: EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr
awaiting...
container has been persisted on sidechain

STDERR:

Start / End / Elapsed	 23:39:11.349199 / 23:39:17.727273 / 0:00:06.378074
  1. Put object
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --cid 'EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr' --file 'TemporaryDir/c814472d-d68d-4137-8626-0956ecb4e825' --no-progress
RETCODE: 0

STDOUT:
[TemporaryDir/c814472d-d68d-4137-8626-0956ecb4e825] Object successfully stored
  OID: DBxvXcRSi6KQdjbSyoJZExDdHgGBMu91Ub26M1TREupi
  CID: EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr

STDERR:

Start / End / Elapsed	 23:39:18.084383 / 23:39:18.485472 / 0:00:00.401089
  1. Get range hash
COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --cid 'EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr' --oid 'DBxvXcRSi6KQdjbSyoJZExDdHgGBMu91Ub26M1TREupi' --range '0:250'
RETCODE: 0

STDOUT:
Offset=0 (Length=250)	: 2e3fcc65f4e7eb2f6470fe5f8cde362d4e4fc21475791ec2cec36a4c28131ec856bd86f757d0ccc5a057b125438f65ae62e93e419a3d79cc3b121ae25bbc04da

STDERR:

Start / End / Elapsed	 23:39:53.118290 / 23:39:53.470146 / 0:00:00.351856
  1. Get hash of range from uploaded file
  2. Try to compare and see that they not equal
AssertionError: Expected range hash to match 0:250 slice of file payload
assert 'fc7cb23c8833...cd1b216b45f3e' == '2e3fcc65f4e7...21ae25bbc04da'
  - 2e3fcc65f4e7eb2f6470fe5f8cde362d4e4fc21475791ec2cec36a4c28131ec856bd86f757d0ccc5a057b125438f65ae62e93e419a3d79cc3b121ae25bbc04da
  + fc7cb23c8833a52649218a0c070ce926c3ca542785cf00042eacd1b216b45f3e

Regression

Yes

Version

0.37.0-rc.1-2-g368774be

Your Environment

Cloud

## autotest testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash ## Expected Behavior Range hash from system should be equal to range hash from uploaded file on simple and complex objects ## Current Behavior Range hash from system not equal to range hash from uploaded file on simple and complex objects ## Possible Solution <!-- Not obligatory If no reason/fix/additions for the bug can be suggested, uncomment the following phrase: No fix can be suggested by a QA engineer. Further solutions shall be up to developers. --> ## Steps to Reproduce (for bugs) 1. Create container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' RETCODE: 0 STDOUT: container ID: EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr awaiting... container has been persisted on sidechain STDERR: Start / End / Elapsed 23:39:11.349199 / 23:39:17.727273 / 0:00:06.378074 ``` 2. Put object ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --cid 'EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr' --file 'TemporaryDir/c814472d-d68d-4137-8626-0956ecb4e825' --no-progress RETCODE: 0 STDOUT: [TemporaryDir/c814472d-d68d-4137-8626-0956ecb4e825] Object successfully stored OID: DBxvXcRSi6KQdjbSyoJZExDdHgGBMu91Ub26M1TREupi CID: EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr STDERR: Start / End / Elapsed 23:39:18.084383 / 23:39:18.485472 / 0:00:00.401089 ``` 3. Get range hash ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '172.26.161.111:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.SwM4VvXGNy/frostfs-testcases/TemporaryDir/68dcd296-5f0b-4a19-a8e6-f7f254529757.json' --cid 'EBfq1uEaV8k9hNQwXMXJMprgaHuLmFWZ1TtecHwxtCgr' --oid 'DBxvXcRSi6KQdjbSyoJZExDdHgGBMu91Ub26M1TREupi' --range '0:250' RETCODE: 0 STDOUT: Offset=0 (Length=250) : 2e3fcc65f4e7eb2f6470fe5f8cde362d4e4fc21475791ec2cec36a4c28131ec856bd86f757d0ccc5a057b125438f65ae62e93e419a3d79cc3b121ae25bbc04da STDERR: Start / End / Elapsed 23:39:53.118290 / 23:39:53.470146 / 0:00:00.351856 ``` 4. Get hash of range from uploaded file 5. Try to compare and see that they not equal ``` AssertionError: Expected range hash to match 0:250 slice of file payload assert 'fc7cb23c8833...cd1b216b45f3e' == '2e3fcc65f4e7...21ae25bbc04da' - 2e3fcc65f4e7eb2f6470fe5f8cde362d4e4fc21475791ec2cec36a4c28131ec856bd86f757d0ccc5a057b125438f65ae62e93e419a3d79cc3b121ae25bbc04da + fc7cb23c8833a52649218a0c070ce926c3ca542785cf00042eacd1b216b45f3e ``` ## Regression Yes ## Version ``` 0.37.0-rc.1-2-g368774be ``` ## Your Environment Cloud
anikeev-yadro added the
bug
triage
labels 2023-09-21 11:05:09 +00:00
acid-ant was assigned by dstepanov-yadro 2023-09-22 07:25:08 +00:00
acid-ant was unassigned by aarifullin 2023-09-25 11:14:03 +00:00
aarifullin self-assigned this 2023-09-25 11:14:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#702
No description provided.