You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Radar wen (Jira)" <ji...@apache.org> on 2023/11/29 02:49:00 UTC

[jira] [Updated] (IO-823) The response time of some interfaces is inconsistent with the expected time.

     [ https://issues.apache.org/jira/browse/IO-823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Radar wen updated IO-823:
-------------------------
    Description: The response time of some interfaces is inconsistent with the expected time.  (was: 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)

> 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
>            Priority: Major
>
> The response time of some interfaces is inconsistent with the expected time.



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