Radar wen created IO-823: ---------------------------- Summary: The response time of some interfaces is inconsistent with the expected time. Key: IO-823 URL: https://issues.apache.org/jira/browse/IO-823 Project: Commons IO Issue Type: Bug Reporter: Radar wen
Scenario: Changing the System Time Zone Response Time of Some Interfaces Using Apache Commons I/O Is Inconsistent with the Expected Time Root cause: The internal waiting function is switched to ThreadUtil from 2.12.0 to 2.15.0 (the latest version is 2.15.0). The waiting implementation logic is as follows: !https://open.codehub.huawei.com/api/codehub/v1/projects/7676/uploads/4d562582-379f-4198-9f40-d64a717fc344/1700878640685.png! The internal ThreadUtil class determines whether to continue to wait based on the difference between the interface invoking time and the current time. When the system time and time zone are changed, the waiting time of ThreadUtil is inaccurate. Check affected functions. Class Method ThreadMonitor start FileSystemUtils performCommand FileSystemUtils freeSpace FileSystemUtils freeSpaceKb PathUtils waitFor FileUtils waitFor Tailer run FileAlterationMonitor start -- This message was sent by Atlassian Jira (v8.20.10#820010)