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

CoordMaterializeTransitionXCommand verifyPrecondition doesn't verify current time

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      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-V1.patch
          6 kB
          Purshotam Shah
        2. OOZIE-1818-V2.patch
          6 kB
          Purshotam Shah

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: