Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8153925

(fs) WatchService hangs on GetOverlappedResult and locks directory (win)

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b117
    • CPU:
      x86_64
    • OS:
      windows
    • Verification:
      Verified

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  akasko Alex Kasko
                  Reporter:
                  akasko Alex Kasko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: