umamaheswararao commented on code in PR #3489:
URL: https://github.com/apache/ozone/pull/3489#discussion_r891694500
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/OzoneClientUtils.java:
##########
@@ -205,8 +207,19 @@ public static FileChecksum
getFileChecksumWithCombineMode(OzoneVolume volume,
if (keyName.length() == 0) {
return null;
}
- BaseFileChecksumHelper helper = new ReplicatedFileChecksumHelper(
- volume, bucket, keyName, length, combineMode, rpcClient);
+ OmKeyArgs keyArgs = new OmKeyArgs.Builder().setVolumeName(volume.getName())
+ .setBucketName(bucket.getName()).setKeyName(keyName)
+ .setRefreshPipeline(true).setSortDatanodesInPipeline(true)
+ .setLatestVersionLocation(true).build();
+ OmKeyInfo keyInfo = rpcClient.getOzoneManagerClient().lookupKey(keyArgs);
+
+ if (keyInfo.getReplicationConfig()
Review Comment:
Sure, I thought I added a comment somewhere. Let me do that right away.
--
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]