Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-2527

IndexOutOfBoundsException in scheduler future

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7
    • general
    • None

    Description

      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();
      

      Attachments

        Activity

          People

            milap.wadhwa Milap Wadhwa
            vkulichenko Valentin Kulichenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m