Re: SchedulerFuture.nextExecutionTime() throws ArrayIndexOutOfBoundsException

2016-02-01 Thread Valentin Kulichenko
Here is the ticket: https://issues.apache.org/jira/browse/IGNITE-2527 -Val On Mon, Feb 1, 2016 at 9:12 PM, Valentin Kulichenko < valentin.kuliche...@gmail.com> wrote: > Hi Steve, > > This happened because the pattern is invalid. It should be "{55, *} 53 3/5 > * * *" (note the second parameter in

Re: SchedulerFuture.nextExecutionTime() throws ArrayIndexOutOfBoundsException

2016-02-01 Thread Valentin Kulichenko
Hi Steve, This happened because the pattern is invalid. It should be "{55, *} 53 3/5 * * *" (note the second parameter in curly braces). There is an exception because of this which immediately completes the future. Calling nextExecutionTime() on a completed future leads to this exception, which is

Re: SchedulerFuture.nextExecutionTime() throws ArrayIndexOutOfBoundsException

2016-02-01 Thread Alexander Bondar
I am not familiar with this API, but it seems these is a bug in sources of this ignite branch (and in master too)408: public long[] nextExecutionTimes(int cnt, long start) { 409:    assert cnt > 0;410:    assert start > 0;411412:    if (isDone() || isCancelled())413:        return EMPTY_TIMES;436:

SchedulerFuture.nextExecutionTime() throws ArrayIndexOutOfBoundsException

2016-02-01 Thread Steve Scheck
Hello, When I schedule a schedule a task with IgniteScheduler.scheduleLocal(), then immediately call SchedulerFuture.nextExecutionTime(), Ignite throws an exception: SchedulerFuture schedulerFuture = scheduler.scheduleLocal(() -> dispatchNow(job), cronString); l