shameersss1 commented on code in PR #7479: URL: https://github.com/apache/hadoop/pull/7479#discussion_r1986733172
########## hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/auth/IAMInstanceCredentialsProvider.java: ########## @@ -62,6 +63,12 @@ public class IAMInstanceCredentialsProvider private static final Logger LOG = LoggerFactory.getLogger(IAMInstanceCredentialsProvider.class); + /** + * How far in advance of credential expiry must IAM credentials be refreshed. + * See HADOOP-19181. S3A: IAMCredentialsProvider throttling results in AWS auth failures + */ + public static final Duration TIME_BEFORE_EXPIRY = Duration.ofMinutes(1); Review Comment: Is it good to have this configurable ? -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org