(fs) WindowsWatchService.Poller::run does not call ReadDirectoryChangesW after a ERROR_NOTIFY_ENUM_DIR

XMLWordPrintable

    • b27
    • generic
    • windows

      FULL PRODUCT VERSION :
      Java8u102

      ADDITIONAL OS VERSION INFORMATION :
      Windows Server 2008 R2

      A DESCRIPTION OF THE PROBLEM :
      In WindowsWatchService.Poller::run, when the CompletionInfo.error() is ERROR_NOTIFY_ENUM_DIR
      an OVERFLOW event is signaled to the key, yet the ReadDirectoryChangesW function is not called
      like it is a few lines below for the other OVERFLOW that is signaled.

      Corresponding line for JDK9:
      http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/1210d929d34e/src/java.base/windows/classes/sun/nio/fs/WindowsWatchService.java#l617


      REPRODUCIBILITY :
      This bug can be reproduced rarely.

      CUSTOMER SUBMITTED WORKAROUND :
      When receiving an OVERFLOW, restart the WatchService.

            Assignee:
            Brian Burkhalter
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: