diff --git a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java index b499f1675a9..2f28d66d7a7 100644 --- a/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java +++ b/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java @@ -1775,7 +1775,7 @@ public OzoneKeyDetails getS3KeyDetails(String bucketName, String keyName, .filter(omKeyLocationInfo -> omKeyLocationInfo.getPartNumber() == partNumber) .collect(Collectors.toList()); - keyInfo.updateLocationInfoList(filteredKeyLocationInfo, false); + keyInfo.updateLocationInfoList(filteredKeyLocationInfo, true, true); keyInfo.setDataSize(filteredKeyLocationInfo.stream() .mapToLong(OmKeyLocationInfo::getLength) .sum());