kerneltime commented on code in PR #5115:
URL: https://github.com/apache/ozone/pull/5115#discussion_r1311101800
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -1558,8 +1559,8 @@ public List<OzoneKey> listKeys(String volumeName, String
bucketName,
String keyPrefix, String prevKey,
int maxListResult)
throws IOException {
- List<OmKeyInfo> keys = ozoneManagerClient.listKeys(
- volumeName, bucketName, prevKey, keyPrefix, maxListResult);
+ List<BasicOmKeyInfo> keys = ozoneManagerClient.listKeysLight(
Review Comment:
We will need to take into account the older OM servers which do not support
the newer API similar to ``` private OmKeyInfo getKeyInfo(OmKeyArgs keyArgs)
throws IOException {
final OmKeyInfo keyInfo;
if (omVersion.compareTo(OzoneManagerVersion.OPTIMIZED_GET_KEY_INFO) >=
0) {
keyInfo = ozoneManagerClient.getKeyInfo(keyArgs, false)
.getKeyInfo();
} else {
keyInfo = ozoneManagerClient.lookupKey(keyArgs);
}
return keyInfo;
}```
--
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]