[ 
https://issues.apache.org/jira/browse/OOZIE-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886890#comment-16886890
 ] 

Julia Kinga Marton commented on OOZIE-2755:
-------------------------------------------

I agree with [~asalamon74] that simply returning true may cause other issues. 

+1 for this specific warning approach.

 

> Oozie HA: ZKJobsConcurrencyService throws runtime exception when numOozies is 
> zero
> ----------------------------------------------------------------------------------
>
>                 Key: OOZIE-2755
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2755
>             Project: Oozie
>          Issue Type: Bug
>          Components: HA
>            Reporter: Dongying Jiao
>            Assignee: Andras Salamon
>            Priority: Major
>         Attachments: OOZIE-2755-01.patch, OOZIE-2755-02.patch
>
>
> Setting up Oozie HA using virtual IP, {{server-1}} and {{server-2}} 
> (active-active), when we take down {{server-1}} any Oozie job submitted fails 
> with below stacktrace. If both are up , there is no issue.
> {code:java}
> ERROR RecoveryService$RecoveryRunnable:517 - SERVER[XXX] USER[-] GROUP[-] 
> TOKEN[-] APP[-] JOB[-] ACTION[-] Exception, / by zero
> java.lang.ArithmeticException: / by zero
>         at 
> org.apache.oozie.service.ZKJobsConcurrencyService.checkJobIdForServer(ZKJobsConcurrencyService.java:167)
>         at 
> org.apache.oozie.service.ZKJobsConcurrencyService.isJobIdForThisServer(ZKJobsConcurrencyService.java:129)
>         at 
> org.apache.oozie.service.RecoveryService$RecoveryRunnable.runWFRecovery(RecoveryService.java:362)
>         at 
> org.apache.oozie.service.RecoveryService$RecoveryRunnable.run(RecoveryService.java:146)
>         at 
> org.apache.oozie.service.SchedulerService$2.run(SchedulerService.java:175)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to