Author: kasha
Date: Sat Dec 21 16:30:06 2013
New Revision: 1552921
URL: http://svn.apache.org/r1552921
Log:
YARN-1028. Addendum patch. Added FailoverProxyProvider capability to
ResourceManager to help with RM failover.
Modified:
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
Modified:
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java?rev=1552921&r1=1552920&r2=1552921&view=diff
==============================================================================
---
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
(original)
+++
hadoop/common/branches/branch-2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
Sat Dec 21 16:30:06 2013
@@ -71,13 +71,6 @@ public class RetryPolicies {
/**
* <p>
- * Keep failing over forever
- * </p>
- */
- public static final RetryPolicy FAILOVER_FOREVER = new FailoverForever();
-
- /**
- * <p>
* Keep trying a limited number of times, waiting a fixed time between
attempts,
* and then fail by re-throwing the exception.
* </p>
@@ -173,14 +166,6 @@ public class RetryPolicies {
return RetryAction.RETRY;
}
}
-
- static class FailoverForever implements RetryPolicy {
- @Override
- public RetryAction shouldRetry(Exception e, int retries, int failovers,
- boolean isIdempotentOrAtMostOnce) throws Exception {
- return RetryAction.FAILOVER_AND_RETRY;
- }
- }
/**
* Retry up to maxRetries.