Tsz-wo Sze created RATIS-1877:
---------------------------------

             Summary: In JvmPauseMonitor, sleepTime should not be larger than 
sleepDeviationThreshold
                 Key: RATIS-1877
                 URL: https://issues.apache.org/jira/browse/RATIS-1877
             Project: Ratis
          Issue Type: Bug
          Components: util
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


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:
 # JvmPauseMonitor sleeps at T
 # A pause start at T+50ms and ends as T+400ms, i.e. the pause is 350ms
 # JvmPauseMonitor wakes up at T+500MS and detects no extra sleep.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to