Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2755

Oozie HA: ZKJobsConcurrencyService throws runtime exception when numOozies is zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0
    • HA
    • None

    Description

      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.

      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)
      

      Attachments

        1. OOZIE-2755-01.patch
          8 kB
          Andras Salamon
        2. OOZIE-2755-02.patch
          9 kB
          Andras Salamon

        Activity

          People

            asalamon74 Andras Salamon
            Dongying Jiao Dongying Jiao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: