YARN-4113. RM should respect retry-interval when uses RetryPolicies.RETRY_FOREVER. (Sunil G via wangda)
This commit is contained in:
parent
c9cb6a5960
commit
b00392dd9c
|
@ -865,6 +865,9 @@ Release 2.8.0 - UNRELEASED
|
|||
|
||||
YARN-4167. NPE on RMActiveServices#serviceStop when store is null. (Bibin A Chundatt via rohithsharmaks)
|
||||
|
||||
YARN-4113. RM should respect retry-interval when uses RetryPolicies.RETRY_FOREVER.
|
||||
(Sunil G via wangda)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -232,7 +232,8 @@ public class RMProxy<T> {
|
|||
|
||||
RetryPolicy retryPolicy = null;
|
||||
if (waitForEver) {
|
||||
retryPolicy = RetryPolicies.RETRY_FOREVER;
|
||||
retryPolicy = RetryPolicies.retryForeverWithFixedSleep(
|
||||
rmConnectionRetryIntervalMS, TimeUnit.MILLISECONDS);
|
||||
} else {
|
||||
retryPolicy =
|
||||
RetryPolicies.retryUpToMaximumTimeWithFixedSleep(rmConnectWaitMS,
|
||||
|
|
|
@ -63,7 +63,8 @@ public class ServerProxy {
|
|||
RetryPolicy retryPolicy = null;
|
||||
if (maxWaitTime == -1) {
|
||||
// wait forever.
|
||||
retryPolicy = RetryPolicies.RETRY_FOREVER;
|
||||
retryPolicy = RetryPolicies.retryForeverWithFixedSleep(retryIntervalMS,
|
||||
TimeUnit.MILLISECONDS);
|
||||
} else {
|
||||
retryPolicy =
|
||||
RetryPolicies.retryUpToMaximumTimeWithFixedSleep(maxWaitTime,
|
||||
|
|
Loading…
Reference in New Issue