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

CoordMaterializeTransitionXCommand verifyPrecondition doesn't verify current time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.2.0
    • None
    • None

    Description

      We need new condition to verify current time.

       if (coordJob.getNextMaterializedTimestamp() != null
                      && coordJob.getNextMaterializedTimestamp().after(
                              new Timestamp(System.currentTimeMillis() + lookAheadWindow * 1000))) {
                  throw new PreconditionException(ErrorCode.E1100, "CoordMaterializeTransitionXCommand for jobId=" + jobId
                          + " Request is for future time. Lookup time is  "
                          + new Timestamp(System.currentTimeMillis() + lookAheadWindow * 1000) + " mat time is "
                          + coordJob.getNextMaterializedTimestamp());
              }
      

      Attachments

        1. OOZIE-1818-V2.patch
          6 kB
          Purshotam Shah
        2. OOZIE-1818-V1.patch
          6 kB
          Purshotam Shah

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: