You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2013/01/31 22:23:14 UTC
[jira] [Created] (OOZIE-1202) ActionKillXCommand precondition is
wrong
Robert Kanter created OOZIE-1202:
------------------------------------
Summary: ActionKillXCommand precondition is wrong
Key: OOZIE-1202
URL: https://issues.apache.org/jira/browse/OOZIE-1202
Project: Oozie
Issue Type: Bug
Components: action
Affects Versions: trunk
Reporter: Robert Kanter
Assignee: Robert Kanter
Fix For: trunk
The {{ActionKillXCommand}}, which kills actions, has the following precondition:
{code}
protected void verifyPrecondition() throws CommandException, PreconditionException {
if (wfAction.getStatus() != WorkflowActionBean.Status.KILLED) {
throw new PreconditionException(ErrorCode.E0726, wfAction.getId());
}
}
{code}
This means that if the only way to pass the precondition is for the action to already have been KILLED, which is backwards. We want the precondition to pass only when the action has not already been KILLED.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira