Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
trunk, 3.3.1
-
None
-
None
Description
OOZIE-1065 adds the following, which calls a BundleStatusUpdateXCommand:
protected void verifyPrecondition() throws CommandException, PreconditionException { + BundleStatusUpdateXCommand bundleStatusUpdate = new BundleStatusUpdateXCommand(coordJob, coordJob.getStatus()); if (coordJob.getStatus() == CoordinatorJob.Status.KILLED || coordJob.getStatus() == CoordinatorJob.Status.FAILED) { LOG.info("CoordRerunXCommand is not able to run, job status=" + coordJob.getStatus() + ", jobid=" + jobId); + // Call the parent so the pending flag is reset and state transition + // of bundle can happen + if (coordJob.getBundleId() != null) { + bundleStatusUpdate.call(); + } throw new CommandException(ErrorCode.E1018, "coordinator job is killed or failed so all actions are not eligible to rerun!"); }
verifyPrecondition() methods shouldn't modify state though
Attachments
Issue Links
- is related to
-
OOZIE-1065 bundle status does not transit after rerun
- Closed