Skip to content

Commit fa18485

Browse files
author
Anuj Modi
committed
Resolving Comments
1 parent 108d6de commit fa18485

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/retryReasonCategories/ServerErrorRetryReason.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@
2020

2121
import static java.net.HttpURLConnection.HTTP_UNAVAILABLE;
2222
import static org.apache.hadoop.fs.azurebfs.constants.AbfsHttpConstants.HTTP_STATUS_CATEGORY_QUOTIENT;
23-
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.*;
24-
import static org.apache.hadoop.fs.azurebfs.services.RetryReasonConstants.*;
23+
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.EGRESS_OVER_ACCOUNT_LIMIT;
24+
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.INGRESS_OVER_ACCOUNT_LIMIT;
25+
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.OTHER_SERVER_THROTTLING;
26+
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.TPS_OVER_ACCOUNT_LIMIT;
27+
import static org.apache.hadoop.fs.azurebfs.services.RetryReasonConstants.EGRESS_LIMIT_BREACH_ABBREVIATION;
28+
import static org.apache.hadoop.fs.azurebfs.services.RetryReasonConstants.INGRESS_LIMIT_BREACH_ABBREVIATION;
29+
import static org.apache.hadoop.fs.azurebfs.services.RetryReasonConstants.OPERATION_LIMIT_BREACH_ABBREVIATION;
30+
import static org.apache.hadoop.fs.azurebfs.services.RetryReasonConstants.OTHER_SERVER_THROTTLING_ABBREVIATION;
2531

2632
/**
2733
* Category that can capture server-response errors for 5XX status-code.

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestAbfsRestOperationMockFailures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import static java.net.HttpURLConnection.HTTP_BAD_REQUEST;
3636
import static java.net.HttpURLConnection.HTTP_INTERNAL_ERROR;
37+
import static java.net.HttpURLConnection.HTTP_MOVED_PERM;
3738
import static java.net.HttpURLConnection.HTTP_OK;
3839
import static java.net.HttpURLConnection.HTTP_UNAVAILABLE;
3940
import static org.apache.hadoop.fs.azurebfs.contracts.services.AzureServiceErrorCode.EGRESS_OVER_ACCOUNT_LIMIT;

0 commit comments

Comments
 (0)