You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2019/06/19 16:44:56 UTC

[hadoop] branch trunk updated: HADOOP-16340. ABFS driver continues to retry on IOException responses from REST operations.

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 450c070  HADOOP-16340. ABFS driver continues to retry on IOException responses from REST operations.
450c070 is described below

commit 450c070a8fb61910f4cd3cf263ce85091509a336
Author: Robert Levas <rl...@cloudera.com>
AuthorDate: Wed Jun 19 17:43:14 2019 +0100

    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
---
 .../org/apache/hadoop/fs/azurebfs/oauth2/AzureADAuthenticator.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/oauth2/AzureADAuthenticator.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/oauth2/AzureADAuthenticator.java
index 39fba83..6204a95 100644
--- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/oauth2/AzureADAuthenticator.java
+++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/oauth2/AzureADAuthenticator.java
@@ -165,6 +165,8 @@ public final class AzureADAuthenticator {
    * requestId and error message, it is thrown when AzureADAuthenticator
    * failed to get the Azure Active Directory token.
    */
+  @InterfaceAudience.LimitedPrivate("authorization-subsystems")
+  @InterfaceStability.Unstable
   public static class HttpException extends IOException {
     private final int httpErrorCode;
     private final String requestId;
@@ -191,7 +193,7 @@ public final class AzureADAuthenticator {
       return this.requestId;
     }
 
-    HttpException(
+    protected HttpException(
         final int httpErrorCode,
         final String requestId,
         final String message,


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org