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 2014/02/24 14:14:19 UTC

[jira] [Commented] (OOZIE-1709) CoordELFunctions.getCurrentInstance() is expensive

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

Shwetha G S commented on OOZIE-1709:
------------------------------------

Thread stuck at: 
{noformat}
"pool-2-thread-4" prio=10 tid=0x00007f42d573c000 nid=0x50f4 runnable [0x00007f42d885b000]
   java.lang.Thread.State: RUNNABLE
        at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2154)
        at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1996)
        at java.util.Calendar.complete(Calendar.java:1527)
        at java.util.GregorianCalendar.add(GregorianCalendar.java:846)
        at org.apache.oozie.coord.CoordELFunctions.getCurrentInstance(CoordELFunctions.java:1234)
        at org.apache.oozie.coord.CoordELFunctions.getCurrentInstance(CoordELFunctions.java:1201)
        at org.apache.oozie.coord.CoordELFunctions.coord_current_sync(CoordELFunctions.java:843)
        at org.apache.oozie.coord.CoordELFunctions.ph2_coord_current(CoordELFunctions.java:493)
{noformat}


> CoordELFunctions.getCurrentInstance() is expensive
> --------------------------------------------------
>
>                 Key: OOZIE-1709
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1709
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Shwetha G S
>
> {noformat}
>       while (current.compareTo(calEffectiveTime) <= 0) {
>             current = (Calendar) origCurrent.clone();
>             instanceCount[0]++;
>             current.add(dsTimeUnit.getCalendarUnit(), instanceCount[0] * dsFreq);
>         }
> {noformat}
> This computes current instance wrt coord start and this while loop is expensive for small frequency coords with start time in very past



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)