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

Oozie upgrade fails if workflow jobs are in running or suspended state

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: tools
    • Labels:
      None

      Description

      While upgrading oozie from 3.x to trunk, oozie upgrade fails if there any workflow jobs found in running or suspended state:

      Error: There are [26] workflows in RUNNING/SUSPENDED state, they must complete or be killed
      
      Stack trace for the error was (for debug purposes):
      --------------------------------------
      java.lang.Exception: There are [26] workflows in RUNNING/SUSPENDED state, they must complete or be killed
      	at org.apache.oozie.tools.OozieDBCLI.verifyDBState(OozieDBCLI.java:992)
      	at org.apache.oozie.tools.OozieDBCLI.upgradeDB(OozieDBCLI.java:197)
      	at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:128)
      	at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:76)
      

      This check seems unnecessary. It may not be possible to ensure in production that no workflows are in running/suspended state before upgrade.

      Also current upgrade code updates the status of coord jobs/coord actions in DB. This may not be required now.

        Attachments

        1. OOZIE-1831.patch.txt
          3 kB
          Satish Mittal

          Activity

            People

            • Assignee:
              satish.mittal Satish Mittal
              Reporter:
              satish.mittal Satish Mittal
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: