shameersss1 commented on code in PR #6884:
URL: https://github.com/apache/hadoop/pull/6884#discussion_r1830432793
##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/S3AStoreImpl.java:
##########
@@ -540,6 +555,102 @@ public Map.Entry<Duration, DeleteObjectsResponse>
deleteObjects(
}
}
+ /**
+ * Performs a HEAD request on an S3 object to retrieve its metadata.
+ *
+ * @param key The S3 object key to perform the HEAD operation on
+ * @param changeTracker Tracks changes to the object's metadata across
operations
+ * @param changeInvoker The invoker responsible for executing the HEAD
request with retries
+ * @param fsHandler Handler for filesystem-level operations and
configurations
+ * @param operation Description of the operation being performed for
tracking purposes
+ * @return HeadObjectResponse containing the object's metadata
+ * @throws IOException If the HEAD request fails, object doesn't exist, or
other I/O errors occur
+ */
+ @Override
+ @Retries.RetryRaw
+ public HeadObjectResponse headObject(String key,
+ ChangeTracker changeTracker,
+ Invoker changeInvoker,
+ S3AFileSystemHandler fsHandler,
+ String operation) throws IOException {
+ HeadObjectResponse response = getStoreContext().getInvoker()
+ .retryUntranslated("GET " + key, true,
Review Comment:
ack
--
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]