You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jing Zhao (JIRA)" <ji...@apache.org> on 2016/04/04 23:19:25 UTC

[jira] [Updated] (HADOOP-13001) RetryPolicies$RetryUpToMaximumTimeWithFixedSleep raises division by zero exception if the sleep time is 0, even if max wait == 0

     [ https://issues.apache.org/jira/browse/HADOOP-13001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jing Zhao updated HADOOP-13001:
-------------------------------
    Priority: Major  (was: Trivial)

> RetryPolicies$RetryUpToMaximumTimeWithFixedSleep raises division by zero exception if the sleep time is 0, even if max wait == 0
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13001
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13001
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc
>    Affects Versions: 2.7.2
>            Reporter: Steve Loughran
>
> set YARN RM max wait and retry intervals to 0, try to talk to an RM, get an arithmetic exception
> {code}
> Caused by: java.lang.ArithmeticException: / by zero
>         at org.apache.hadoop.io.retry.RetryPolicies$RetryUpToMaximumTimeWithFixedSleep.<init>(RetryPolicies.java:265)
>         at org.apache.hadoop.io.retry.RetryPolicies.retryUpToMaximumTimeWithFixedSleep(RetryPolicies.java:89)
>         at org.apache.hadoop.yarn.client.RMProxy.createRetryPolicy(RMProxy.java:237)
>         at org.apache.hadoop.yarn.client.RMProxy.createRMProxy(RMProxy.java:91)
>         at org.apache.hadoop.yarn.client.ClientRMProxy.createRMProxy(ClientRMProxy.java:72)
>         at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.serviceStart(YarnClientImpl.java:188)
>         at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
>         at org.apache.spark.deploy.history.yarn.server.YarnHistoryProvider.initYarnClient(YarnHistoryProvider.scala:931)
>         at org.apache.spark.deploy.history.yarn.server.YarnHistoryProvider.init(YarnHistoryProvider.scala:296)
> {code}
> I'd have expected the code to recognise the caller is saying "don't retry", but clearly not



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)