Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1877

In JvmPauseMonitor, sleepTime should not be larger than sleepDeviationThreshold

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.2
    • util
    • None

    Description

      Current the JvmPauseMonitor.SLEEP_TIME is hard coded to 500ms and the default value of sleepDeviationThreshold is 300ms. In this case, JvmPauseMonitor may not be able to detect an extra sleep violating the threshold. Consider the following:

      1. JvmPauseMonitor sleeps at T
      2. A pause start at T+50ms and ends as T+400ms, i.e. the pause is 350ms
      3. JvmPauseMonitor wakes up at T+500MS and detects no extra sleep.

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                  0.5h