JDK-8153925 : (fs) WatchService hangs on GetOverlappedResult and locks directory (win)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2016-04-09
  • Updated: 2017-11-29
  • Resolved: 2016-05-03
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 8 JDK 9
8u152Fixed 9 b117Fixed
Related Reports
Relates :  
Description
On Windows after JDK-8029516 is some cases WatchService may call GetOverlappedResult when ReadDirectoryChangesW failed an no actual overlapped I/O is active. After that poller thread hangs infinitely and doesn't release watched directory handle. This happens more often during heavy disk I/O.

This issue is from JBoss IDE, original investigation and working reproducer was done by Thomas M��der, see:
 - https://issues.jboss.org/browse/JBIDE-22145
 - https://issues.jboss.org/browse/JBIDE-22078