ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2527) IndexOutOfBoundsException in scheduler future
Date Tue, 02 Feb 2016 05:20:39 GMT
Valentin Kulichenko created IGNITE-2527:

             Summary: IndexOutOfBoundsException in scheduler future
                 Key: IGNITE-2527
                 URL: https://issues.apache.org/jira/browse/IGNITE-2527
             Project: Ignite
          Issue Type: Bug
          Components: general
            Reporter: Valentin Kulichenko
            Priority: Minor
             Fix For: 1.6

Calling {{SchedulerFuture.nextExecutionTime()}} (and probably other methods) on a completed
future leads to this exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
	at org.apache.ignite.internal.processors.schedule.ScheduleFutureImpl.nextExecutionTime(ScheduleFutureImpl.java:455)
In particular, this happens if {{nextExecutionTime()}} right after calling {{IgniteScheduler.scheduleLocal()}}
with an invalid pattern (see code example below). The exception is lost in this case and is
never printed out or thrown.
SchedulerFuture schedulerFuture = ignite.scheduler().scheduleLocal(() -> {}, "{55} 53 3/5
* * *");
long nextExecutionTime = schedulerFuture.nextExecutionTime();

This message was sent by Atlassian JIRA

View raw message