HADOOP-16340. ABFS driver continues to retry on IOException responses from REST operations.

Contributed by Robert Levas.

This makes the HttpException constructor protected rather than public, so it is possible
to implement custom subclasses of this exception -exceptions which will not be retried.

Change-Id: Ie8aaa23a707233c2db35948784908b6778ff3a8f
This commit is contained in:
Robert Levas 2019-06-19 17:43:14 +01:00 committed by Steve Loughran
parent 9d6842501c
commit 450c070a8f
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 3 additions and 1 deletions

View File

@ -165,6 +165,8 @@ public final class AzureADAuthenticator {
* requestId and error message, it is thrown when AzureADAuthenticator * requestId and error message, it is thrown when AzureADAuthenticator
* failed to get the Azure Active Directory token. * failed to get the Azure Active Directory token.
*/ */
@InterfaceAudience.LimitedPrivate("authorization-subsystems")
@InterfaceStability.Unstable
public static class HttpException extends IOException { public static class HttpException extends IOException {
private final int httpErrorCode; private final int httpErrorCode;
private final String requestId; private final String requestId;
@ -191,7 +193,7 @@ public final class AzureADAuthenticator {
return this.requestId; return this.requestId;
} }
HttpException( protected HttpException(
final int httpErrorCode, final int httpErrorCode,
final String requestId, final String requestId,
final String message, final String message,