[ 
https://issues.apache.org/jira/browse/OOZIE-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211351#comment-14211351
 ] 

Purshotam Shah commented on OOZIE-2064:
---------------------------------------

Issue is with start time calculation for each materialization cycle.
coord:endOfMonths does data adjustment.  coord:endOfMonths will shift start 
time to first day of next month.

Earlier materialization was calculated from job start time,

Calendar effStart = (Calendar) origStart.clone();
effStart.add(freqTU.getCalendarUnit(), lastActionNumber * frequency);

With OOZIE-1306, materialization start time is.
Calendar start = Calendar.getInstance(appTz);
start.setTime(startMatdTime);
DateUtils.moveToEnd(start, endOfFlag);
This will work for most of case, but not for cases where we need to do time 
adjustment.


For a materialization cycle.
startMatdTime=x and endMatdTime= x +  materialization_window.

For coord:endOfMonths, startMatdTime will be x + 1 Month, which will be more 
than  endMatdTime. So job will never get materialize.

> coord job with frequency coord:endOfMonths doesn't materialize
> --------------------------------------------------------------
>
>                 Key: OOZIE-2064
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2064
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Purshotam Shah
>            Assignee: Purshotam Shah
>             Fix For: 4.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to