kfaraz commented on a change in pull request #11899:
URL: https://github.com/apache/druid/pull/11899#discussion_r746512782
##########
File path:
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3DataSegmentPuller.java
##########
@@ -231,6 +229,8 @@ public Writer openWriter()
@Override
public long getLastModified()
{
+ final S3ObjectSummary objectSummary =
Review comment:
You could also check if `s3Object` is already initialized and just use
`s3Object.getObjectMetadata().getLastModified()`.
If not initialized, then you could go for the LIST (or GET if it is cheaper).
--
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]