You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Shwetha G S (JIRA)" <ji...@apache.org> on 2015/05/18 09:12:08 UTC
[jira] [Updated] (OOZIE-1818) CoordMaterializeTransitionXCommand
verifyPrecondition doesn't verify current time
[ https://issues.apache.org/jira/browse/OOZIE-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shwetha G S updated OOZIE-1818:
-------------------------------
Fix Version/s: (was: trunk)
4.2
> CoordMaterializeTransitionXCommand verifyPrecondition doesn't verify current time
> ---------------------------------------------------------------------------------
>
> Key: OOZIE-1818
> URL: https://issues.apache.org/jira/browse/OOZIE-1818
> Project: Oozie
> Issue Type: Bug
> Reporter: Purshotam Shah
> Assignee: Purshotam Shah
> Fix For: 4.2
>
> Attachments: OOZIE-1818-V1.patch, OOZIE-1818-V2.patch
>
>
> We need new condition to verify current time.
> {code}
> 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());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)