GeorgeJahad commented on code in PR #3800:
URL: https://github.com/apache/ozone/pull/3800#discussion_r994020811
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -1437,6 +1421,34 @@ public OzoneKeyDetails getKeyDetails(
getInputStream);
}
+ private OmKeyInfo getKeyInfo(
+ String volumeName, String bucketName, String keyName,
+ boolean forceUpdateContainerCache) throws IOException {
+ Preconditions.checkNotNull(volumeName);
+ Preconditions.checkNotNull(bucketName);
+ Preconditions.checkNotNull(keyName);
+ OmKeyArgs keyArgs = new OmKeyArgs.Builder()
+ .setVolumeName(volumeName)
+ .setBucketName(bucketName)
+ .setKeyName(keyName)
+ .setSortDatanodesInPipeline(topologyAwareReadEnabled)
+ .setLatestVersionLocation(getLatestVersionLocation)
+ .setForceUpdateContainerCacheFromSCM(forceUpdateContainerCache)
+ .build();
+ return getKeyInfo(keyArgs);
+ }
+
+ private OmKeyInfo getKeyInfo(OmKeyArgs keyArgs) throws IOException {
+ final OmKeyInfo keyInfo;
+ if (omVersion.compareTo(OzoneManagerVersion.OPTIMIZED_GET_KEY_INFO) >= 0) {
+ keyInfo = ozoneManagerClient.getKeyInfo(keyArgs, false)
Review Comment:
when does the assumeS3Context parameter get set to true?
--
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]