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

Coord change command doesn't change job to running if job was killed without creating any actions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0b1, 4.3.1
    • None
    • None

    Description

      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();
          }
      }
      

      If the job was killed without creating any action, then coordJob.getNextMaterializedTime() will be null and change command will not reset done materialization.

      Attachments

        1. OOZIE-2862-V1.patch
          8 kB
          Purshotam Shah
        2. OOZIE-2862-V2.patch
          8 kB
          Purshotam Shah

        Issue Links

          Activity

            People

              puru Purshotam Shah
              puru Purshotam Shah
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: