siddhantsangwan opened a new pull request, #7524: URL: https://github.com/apache/ozone/pull/7524
## What changes were proposed in this pull request? Please check the jira for a description of the problem. The solution proposed here is to change `isKey()` to `getIsKey()` in `KeyEntityInfoProtoWrapper`. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-11848 ## How was this patch tested? Tested manually. Before the fix, calling the listKeys endpoint resulted in the described bug: ``` http://localhost:9888/api/v1/keys/listKeys?startPrefix=/vol1/bucket2&limit=1000 Conflicting/ambiguous property name definitions (implicit name 'key'): found multiple explicit names: [key, isKey], but also implicit accessor: [method org.apache.hadoop.ozone.recon.api.types.KeyEntityInfoProtoWrapper#setKey(java.lang.String)][visible=true,ignore=false,explicitName=false] (through reference chain: org.apache.hadoop.ozone.recon.api.types.ListKeysResponse["keys"]) ``` After the fix, it works as expected: ``` http://localhost:9888/api/v1/keys/listKeys?startPrefix=/vol1/bucket2&limit=1000 { "status": "OK", "path": "/vol1/bucket2", "replicatedDataSize": 4068, "unReplicatedDataSize": 4068, "lastKey": "/-9223372036854775552/-9223372036854775040/-9223372036854775040/key", "keys": [ { "parentId": -9.223372036854775e+18, "volumeName": "vol1", "bucketName": "bucket2", "keyName": "key", "key": "/-9223372036854775552/-9223372036854775040/-9223372036854775040/key", "path": "vol1/bucket2/key", "replicatedSize": 4068, "replicationInfo": { "replicationFactor": "ONE", "requiredNodes": 1, "minimumNodes": 1, "replicationType": "RATIS" }, "creationTime": 1733221329416, "size": 4068, "isKey": true, "modificationTime": 1733221330013 } ] } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
