Command object hash --range with invalid range returns not expected error #1083

Closed
opened 2024-04-09 10:26:17 +00:00 by anikeev-yadro · 0 comments
Member

Expected Behavior

Command object hash --range with invalid range should retrns error out of range

Current Behavior

Command object hash --range with invalid range retrns not expected error

COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object hash --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --oid '3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa' --range '1001:10' --timeout '100s'
RETCODE: 1

STDOUT:
rpc error: read payload hashes via client: missing hash list field in the response

STDERR:

Start / End / Elapsed	 17:55:38.695176 / 17:55:39.237409 / 0:00:00.542233

Steps to Reproduce (for bugs)

1.Create container

COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml container create --rpc-endpoint '10.78.70.106:8080' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' --timeout '100s'
RETCODE: 0

STDOUT:
CID: 2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF
awaiting...
container has been persisted on sidechain

STDERR:

Start / End / Elapsed	 17:53:41.396743 / 17:53:48.864521 / 0:00:07.467778

2.Put object

COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object put --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --file 'TemporaryDir/6fcf1afb-5585-4af3-b584-8fa2aacc9195' --no-progress --timeout '100s'
RETCODE: 0

STDOUT:
[TemporaryDir/6fcf1afb-5585-4af3-b584-8fa2aacc9195] Object successfully stored
  OID: 3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa
  CID: 2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF

STDERR:

Start / End / Elapsed	 17:53:49.452316 / 17:53:51.015375 / 0:00:01.563059

3.Get range hash with invalid range

COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object hash --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --oid '3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa' --range '1001:10' --timeout '100s'
RETCODE: 1

STDOUT:
rpc error: read payload hashes via client: missing hash list field in the response

STDERR:

Start / End / Elapsed	 17:55:38.695176 / 17:55:39.237409 / 0:00:00.542233

Context

Autotest pytest_tests.testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash_negatives

Regression

Yes

##Version

0.38.1

Your Environment

Cloud

## Expected Behavior Command `object hash --range` with invalid range should retrns error `out of range` ## Current Behavior Command `object hash --range` with invalid range retrns not expected error ``` COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object hash --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --oid '3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa' --range '1001:10' --timeout '100s' RETCODE: 1 STDOUT: rpc error: read payload hashes via client: missing hash list field in the response STDERR: Start / End / Elapsed 17:55:38.695176 / 17:55:39.237409 / 0:00:00.542233 ``` ## Steps to Reproduce (for bugs) 1.Create container ``` COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml container create --rpc-endpoint '10.78.70.106:8080' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' --timeout '100s' RETCODE: 0 STDOUT: CID: 2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF awaiting... container has been persisted on sidechain STDERR: Start / End / Elapsed 17:53:41.396743 / 17:53:48.864521 / 0:00:07.467778 ``` 2.Put object ``` COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object put --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --file 'TemporaryDir/6fcf1afb-5585-4af3-b584-8fa2aacc9195' --no-progress --timeout '100s' RETCODE: 0 STDOUT: [TemporaryDir/6fcf1afb-5585-4af3-b584-8fa2aacc9195] Object successfully stored OID: 3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa CID: 2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF STDERR: Start / End / Elapsed 17:53:49.452316 / 17:53:51.015375 / 0:00:01.563059 ``` 3.Get range hash with invalid range ``` COMMAND: frostfs-cli --config TemporaryDir/user_0x615991f2671d7-config.yml object hash --rpc-endpoint '10.78.70.106:8080' --cid '2Zwn5NqkMHVC47hm3hvbXMuRFAq3iJxU91zgGYuhEkEF' --oid '3TmRjvAPUxWwhrQxMtXUj5ukibgo5LDkcd45mtsmh5xa' --range '1001:10' --timeout '100s' RETCODE: 1 STDOUT: rpc error: read payload hashes via client: missing hash list field in the response STDERR: Start / End / Elapsed 17:55:38.695176 / 17:55:39.237409 / 0:00:00.542233 ``` ## Context Autotest **pytest_tests.testsuites.object.test_object_api.TestObjectApi#test_object_get_range_hash_negatives** ## Regression Yes ##Version ``` 0.38.1 ``` ## Your Environment Cloud
anikeev-yadro added the
bug
triage
labels 2024-04-09 10:26:17 +00:00
acid-ant was assigned by fyrchik 2024-04-09 11:22:44 +00:00
fyrchik added
frostfs-node
and removed
triage
labels 2024-04-09 11:23:10 +00:00
fyrchik added the
triage
label 2024-04-09 11:52:32 +00:00
fyrchik added this to the v0.38.5 milestone 2024-04-10 07:04:52 +00:00
fyrchik modified the milestone from v0.38.5 to v0.39.0 2024-04-15 07:58:52 +00:00
fyrchik modified the milestone from v0.39.0 to v0.40.0 2024-05-14 14:04:49 +00:00
fyrchik self-assigned this 2024-05-15 08:25:11 +00:00
acid-ant was unassigned by fyrchik 2024-05-15 08:25:11 +00:00
fyrchik removed the
triage
label 2024-05-15 09:04:36 +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#1083
No description provided.