[
https://issues.apache.org/jira/browse/RATIS-1877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Song Ziyang resolved RATIS-1877.
--------------------------------
Fix Version/s: 3.0.0
2.5.2
Resolution: Fixed
The PR is now merged. Thanks [~szetszwo] ~
> 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
> Priority: Major
> Fix For: 3.0.0, 2.5.2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)