[ https://issues.apache.org/jira/browse/OOZIE-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Satish Subhashrao Saley updated OOZIE-2862: ------------------------------------------- Cherry-picked from master to branch-4.3. > Coord change command doesn't change job to running if job was killed without > creating any actions > ------------------------------------------------------------------------------------------------- > > Key: OOZIE-2862 > URL: https://issues.apache.org/jira/browse/OOZIE-2862 > Project: Oozie > Issue Type: Bug > Reporter: Purshotam Shah > Assignee: Purshotam Shah > Fix For: 5.0.0b1, 4.3.1 > > Attachments: OOZIE-2862-V1.patch, OOZIE-2862-V2.patch > > > {code:title=CoordChangeXCommand.java} > if (jobStatus != null) { > coordJob.setStatus(jobStatus); > LOG.info("Coord status is changed to " + jobStatus + " from " + > prevStatus); > if (jobStatus.equals(CoordinatorJob.Status.RUNNING)) { > coordJob.setPending(); > if (coordJob.getNextMaterializedTime() != null > && > coordJob.getEndTime().after(coordJob.getNextMaterializedTime())) { > coordJob.resetDoneMaterialization(); > } > } else if (jobStatus.equals(CoordinatorJob.Status.IGNORED)) { > coordJob.resetPending(); > coordJob.setDoneMaterialization(); > } > } > {code} > If the job was killed without creating any action, then > {{coordJob.getNextMaterializedTime()}} will be null and change command will > not reset done materialization. -- This message was sent by Atlassian JIRA (v6.4.14#64029)