Abhishek Pal created HDDS-11395:
-----------------------------------
Summary: Values for Key and Path are swapped for Open Keys response
Key: HDDS-11395
URL: https://issues.apache.org/jira/browse/HDDS-11395
Project: Apache Ozone
Issue Type: Bug
Components: Ozone Recon
Affects Versions: 1.4.0, 1.5.0
Reporter: Abhishek Pal
Assignee: Abhishek Pal
Fix For: 1.5.0
In the Open Keys API for Recon
{panel}
<RECON ENDPOINT>/api/v1/keys/open?includeFso=false&includeNonFso=true&limit=1000
{panel}
the value for the path and the key are swapped.
This is present for both fso and nonFso types.
So we should provide the path as the 'key' and the key as the 'path' in the
response.
Please refer to attached response for this behaviour:
{code}
{
"lastKey": "/vol1/bukc2/test5/113040107766874114",
"replicatedDataSize": 30000000000,
"unreplicatedDataSize": 10000000000,
"nonFSO": [
{
"key": "/vol1/bukc2/test5/113040107766874114",
"path": "test5",
"inStateSince": 1724855160012,
"size": 10000000000,
"replicatedSize": 30000000000,
"replicationInfo": {
"replicationFactor": "THREE",
"requiredNodes": 3,
"replicationType": "RATIS"
},
"creationTime": 1724862833434,
"modificationTime": 1724862833434,
"isKey": true
}
],
"status": "OK"
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]