You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Satish Mittal (JIRA)" <ji...@apache.org> on 2014/05/12 20:51:21 UTC

[jira] [Updated] (OOZIE-1831) Oozie upgrade fails if workflow jobs are in running or suspended state

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

Satish Mittal updated OOZIE-1831:
---------------------------------

    Attachment: OOZIE-1831.patch.txt

Attaching patch for the fix.

> Oozie upgrade fails if workflow jobs are in running or suspended state
> ----------------------------------------------------------------------
>
>                 Key: OOZIE-1831
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1831
>             Project: Oozie
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 4.1.0
>            Reporter: Satish Mittal
>            Assignee: Satish Mittal
>             Fix For: 4.1.0
>
>         Attachments: OOZIE-1831.patch.txt
>
>
> While upgrading oozie from 3.x to trunk, oozie upgrade fails if there any workflow jobs found in running or suspended state:
> {noformat}
> 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)
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)