Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1561 REEF as a library
  3. REEF-1527

Graceful shutdown of the RuntimeClock is not so graceful: unconditionally clears the event queue

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • REEF-Common, Wake

    Description

      REEF RuntimeClock.close() method that is supposed to perform a graceful shutdown of the event loop, contains the following code:

      this.schedule.clear();
      this.schedule.add(new StopTime(findAcceptableStopTime()));
      

      The problem is that findAcceptableStopTime() searches the schedule for the last client alarm - when the schedule has been cleared already.

      We need to schedule StopTime event without clearing the schedule to allow graceful shutdown, but close the clock so no events will be scheduled after it.

      Attachments

        Issue Links

          Activity

            People

              motus Sergiy Matusevych
              motus Sergiy Matusevych
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified