steveloughran commented on code in PR #5995:
URL: https://github.com/apache/hadoop/pull/5995#discussion_r1309008794
##########
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/AWSCredentialProviderList.java:
##########
@@ -330,4 +332,27 @@ public void close() {
public int size() {
return providers.size();
}
+
+
+ /**
+ * Translate an exception if it or its inner exception is an
+ * {@link CredentialInitializationException}.
+ * If this condition is not met, null is returned.
+ * @param path path of operation.
+ * @param throwable exception
+ * @return a translated exception or null.
+ */
+ public static IOException maybeTranslateCredentialException(String path,
Review Comment:
the audit and CredentialInitializationExceptions are both
SdkClientException. they may both be wrapped by async handler, and while I
didn't try to replicate it, if it happened in the same request I'd expect the
same failure. [and not expected in sync s3 client].
--
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]