Get invalid range hash returned "object not found" instead of "out of range" (complex object) #730

Closed
opened 2023-10-09 09:56:04 +00:00 by anikeev-yadro · 2 comments
Member

Expected Behavior

Get invalid range hash should returned "out of range".

Current Behavior

Get invalid range hash returned "object not found".

Steps to Reproduce (for bugs)

  1. Create 2 complex objects
COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '10.78.70.137:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --file 'TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29' --no-progress
RETCODE: 0

STDOUT:
[TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29] Object successfully stored
  OID: 2r96TSdVa2gTqqjtKWDzk11Ys2gMrwU9JdM4mUK8soZy
  CID: 8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN

STDERR:

Start / End / Elapsed	 16:26:19.859638 / 16:26:29.704539 / 0:00:09.844901
COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --file 'TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29' --attributes 'key1=1,key2=abc,common_key=common_value' --no-progress
RETCODE: 0

STDOUT:
[TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29] Object successfully stored
  OID: 9GpN2wFdKAhwJn9rQhNCUG1m9tX35d8kuMMTWXyQYeXc
  CID: 8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN

STDERR:

Start / End / Elapsed	 16:26:29.709099 / 16:26:39.325075 / 0:00:09.615976
  1. Get invalid range from obj1 returned right answer
COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --oid '2r96TSdVa2gTqqjtKWDzk11Ys2gMrwU9JdM4mUK8soZy' --range '201327593:10'
RETCODE: 1

STDOUT:
rpc error: read payload hashes via client: status: code = 2053 message = out of range

STDERR:

Start / End / Elapsed	 16:29:48.036694 / 16:29:50.785418 / 0:00:02.748724
  1. Get invalid range from obj2 returned wrong answer
COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --oid '9GpN2wFdKAhwJn9rQhNCUG1m9tX35d8kuMMTWXyQYeXc' --range '201327593:10'
RETCODE: 1

STDOUT:
rpc error: read payload hashes via client: status: code = 2049 message = object not found

STDERR:

Start / End / Elapsed	 16:29:50.789276 / 16:29:51.305477 / 0:00:00.516201

Context

Autotest testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash_negatives

Regression

Yes

Version

0.37.0-rc.1-5-ge0f0b93b

Your Environment

HW

## Expected Behavior Get invalid range hash should returned "out of range". ## Current Behavior Get invalid range hash returned "object not found". ## Steps to Reproduce (for bugs) 1. Create 2 complex objects ``` COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '10.78.70.137:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --file 'TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29' --no-progress RETCODE: 0 STDOUT: [TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29] Object successfully stored OID: 2r96TSdVa2gTqqjtKWDzk11Ys2gMrwU9JdM4mUK8soZy CID: 8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN STDERR: Start / End / Elapsed 16:26:19.859638 / 16:26:29.704539 / 0:00:09.844901 ``` ``` COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --file 'TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29' --attributes 'key1=1,key2=abc,common_key=common_value' --no-progress RETCODE: 0 STDOUT: [TemporaryDir/e57741ef-033c-4214-8409-c6f180ce9c29] Object successfully stored OID: 9GpN2wFdKAhwJn9rQhNCUG1m9tX35d8kuMMTWXyQYeXc CID: 8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN STDERR: Start / End / Elapsed 16:26:29.709099 / 16:26:39.325075 / 0:00:09.615976 ``` 2. Get invalid range from obj1 returned right answer ``` COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --oid '2r96TSdVa2gTqqjtKWDzk11Ys2gMrwU9JdM4mUK8soZy' --range '201327593:10' RETCODE: 1 STDOUT: rpc error: read payload hashes via client: status: code = 2053 message = out of range STDERR: Start / End / Elapsed 16:29:48.036694 / 16:29:50.785418 / 0:00:02.748724 ``` 3. Get invalid range from obj2 returned wrong answer ``` COMMAND: frostfs-cli --config /jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/wallet_config.yml object hash --rpc-endpoint '10.78.70.135:8080' --wallet '/jenkins/workspace/frostfs_tatlin_object_to_baremetal_test/tmp.LQbtmUHB42/frostfs-testcases/TemporaryDir/9f1e7f74-2e76-4e13-aee7-4ee3baac6101.json' --cid '8HX2L2JetKo3JRwCdzNDJAxM9zSGfrFQhMTgGtGVKHnN' --oid '9GpN2wFdKAhwJn9rQhNCUG1m9tX35d8kuMMTWXyQYeXc' --range '201327593:10' RETCODE: 1 STDOUT: rpc error: read payload hashes via client: status: code = 2049 message = object not found STDERR: Start / End / Elapsed 16:29:50.789276 / 16:29:51.305477 / 0:00:00.516201 ``` ## Context Autotest testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash_negatives ## Regression Yes ## Version ``` 0.37.0-rc.1-5-ge0f0b93b ``` ## Your Environment HW
anikeev-yadro added the
bug
triage
labels 2023-10-09 09:56:04 +00:00
Author
Member

Related to #617

Related to #617
fyrchik added
frostfs-node
and removed
triage
labels 2023-10-09 19:02:47 +00:00
fyrchik added this to the v0.37.0 milestone 2023-10-09 19:02:50 +00:00
acid-ant was assigned by fyrchik 2023-10-23 13:53:08 +00:00
Owner

Cannot reproduce

Cannot 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#730
No description provided.