priyeshkaratha commented on code in PR #12170:
URL: https://github.com/apache/ozone/pull/12170#discussion_r4796277202
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/protocol/ClientProtocol.java:
##########
@@ -161,9 +162,9 @@ OzoneVolume getVolumeDetails(String volumeName)
* If Key exists, return returns OzoneKey.
* If Key does not exist, throws an exception with error code KEY_NOT_FOUND
*
- * @return OzoneKey which gives basic information about the key.
+ * @return OzoneKey which gives basic information about the key, with its
lifecycle expiration.
*/
- OzoneKey headS3Object(String bucketName, String keyName) throws IOException;
+ S3KeyReadResult<OzoneKey> headS3Object(String bucketName, String keyName)
throws IOException;
Review Comment:
Thanks @Gargi-jais11 and @chihsuan, agreed. I've restored `headS3Object` and
`getS3KeyDetails` to their original signatures and added
`headS3ObjectWithExpiration` and `getS3KeyDetailsWithExpiration` which return
`S3KeyReadResult`.
--
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]