Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1537

LogicalTimer can cause a race condition in RuntimeClock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • REEF-Common

    Description

      RuntimeClock has a concept of injectable timer, and in many unit tests, we use LogicalTimer to speed up the operations. Unfortunately, RuntimeClock still depends on the system timer internally: it uses Object.wait(time) calls in the event loop. That can cause race conditions when using LogicalTimer, e.g. in unit test ClockTest.testAlarmOrder()

      The solution would be to move the .wait() functionality into the logical timer and use that inside the RuntimeClock.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: