Uploaded image for project: 'REEF'
  1. REEF
  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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.16
    • Component/s: REEF-Common, Wake
    • Labels:

      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

              • Assignee:
                motus Sergiy Matusevych
                Reporter:
                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