Skip to content

Commit 7d4c4f1

Browse files
author
Stephen Wu
committed
fix checkstyle
1 parent 5dc0a24 commit 7d4c4f1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3ARetryPolicy.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ protected Map<Class<? extends Exception>, RetryPolicy> createExceptionMap() {
215215
// policy on a 400/bad request still ambiguous.
216216
// Treated as an immediate failure
217217
RetryPolicy awsBadRequestExceptionRetryPolicy =
218-
configuration.getBoolean(FAIL_ON_AWS_BAD_REQUEST, DEFAULT_FAIL_ON_AWS_BAD_REQUEST) ?
219-
fail :
220-
retryIdempotentCalls;
218+
configuration.getBoolean(FAIL_ON_AWS_BAD_REQUEST, DEFAULT_FAIL_ON_AWS_BAD_REQUEST) ?
219+
fail : retryIdempotentCalls;
221220
policyMap.put(AWSBadRequestException.class, awsBadRequestExceptionRetryPolicy);
222221

223222
// Status 500 error code is also treated as a connectivity problem

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestInvoker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ public void testRetryBadRequestIdempotent() throws Throwable {
326326

327327
IOException ex = translateException("GET", "/", BAD_REQUEST);
328328
assertRetryAction("Expected retry on aws bad request",
329-
retryPolicy, RetryPolicy.RetryAction.RETRY,
330-
ex, 1, true);
329+
retryPolicy, RetryPolicy.RetryAction.RETRY,
330+
ex, 1, true);
331331
}
332332

333333
@Test

0 commit comments

Comments
 (0)