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 20c0307e379..5cb1bab1a5c 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 enum RetryDecision {
* {@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 true
if the method should be retried,
- * false
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 e
indicating that
* the method failed and should not be retried further
*/