JDK-8285956 : (fs) Excessive default poll interval in PollingWatchService
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x,aix
  • Submitted: 2022-04-29
  • Updated: 2022-12-05
  • Resolved: 2022-05-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18 JDK 19
17.0.4Fixed 18.0.2Fixed 19 b22Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
AIX and BSD's implementation of the WatchService and WatchKey interfaces is given in PollingWatchService.java. The default wait after starting the polling thread, and period between subsequent polls is 10 seconds. This value is too long.
Comments
[17u, 18u Fix Request] Backporting this change to 17 and 18 to improve WatchService performance. Backport clean and risk low.
05-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/121 Date: 2022-05-05 14:18:16 +0000
05-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/384 Date: 2022-05-05 14:15:02 +0000
05-05-2022

Changeset: 1bb4de2e Author: Tyler Steele <tyler.steele@ibm.com> Committer: Thomas Stuefe <stuefe@openjdk.org> Date: 2022-05-05 04:05:55 +0000 URL: https://git.openjdk.java.net/jdk/commit/1bb4de2e2868a539846ec48dd43fd623c2ba69a5
05-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8479 Date: 2022-04-30 00:14:29 +0000
30-04-2022