hongkunxu commented on code in PR #16553:
URL: https://github.com/apache/pinot/pull/16553#discussion_r2264786857
##########
pinot-plugins/pinot-file-system/pinot-s3/src/main/java/org/apache/pinot/plugin/filesystem/S3PinotFS.java:
##########
@@ -702,6 +740,28 @@ public void copyToLocalFile(URI srcUri, File dstFile)
_s3Client.getObject(getObjectRequest, ResponseTransformer.toFile(dstFile));
}
+ @Override
+ public void copyToLocalFile(URI srcUri, File dstFile)
+ throws Exception {
+ try {
+ LOGGER.info("Copy {} to local {}", srcUri, dstFile.getAbsolutePath());
+ copyToLocalFileInternal(srcUri, dstFile);
+ } catch (Exception e) {
+ LOGGER.warn("Caught exception during S3 copy, attempting to refresh
credentials and retry");
Review Comment:
Thanks for your advice. I've handled the refresh logic in other method.
Please help to review again. @xiangfu0
--
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]