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 aa...@apache.org on 2018/03/01 10:04:05 UTC
hadoop git commit: HADOOP-15275. Incorrect javadoc for return type of
RetryPolicy#shouldRetry
Repository: hadoop
Updated Branches:
refs/heads/trunk ececeea8f -> 55d04a6db
HADOOP-15275. Incorrect javadoc for return type of RetryPolicy#shouldRetry
Signed-off-by: Akira Ajisaka <aa...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/55d04a6d
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/55d04a6d
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/55d04a6d
Branch: refs/heads/trunk
Commit: 55d04a6db10d0e58cfe0ff82fa646bb6ba57aaac
Parents: ececeea
Author: Nanda kumar <na...@apache.org>
Authored: Thu Mar 1 19:02:24 2018 +0900
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Thu Mar 1 19:03:47 2018 +0900
----------------------------------------------------------------------
.../src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/55d04a6d/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
index 20c0307..5cb1bab 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
@@ -89,9 +89,10 @@ public interface RetryPolicy {
* {@link Idempotent} or {@link AtMostOnce} and so can reasonably be
* retried on failover when we don't know if the previous attempt
* reached the server or not
- * @return <code>true</code> if the method should be retried,
- * <code>false</code> if the method should not be retried but
- * shouldn't fail with an exception (only for void methods)
+ * @return {@link RetryAction} with {@code RetryDecision.FAIL} if the method
+ * should not be retried, {@code RetryDecision.RETRY} if the method
+ * should be retried or {@code RetryDecision.FAILOVER_AND_RETRY}
+ * if failover has to be performed before retry.
* @throws Exception The re-thrown exception <code>e</code> indicating that
* the method failed and should not be retried further
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org