WatchService delay with PollingWatchService causes test failures

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 17, 19, 20
    • Component/s: core-libs
    • None
    • generic
    • aix

      Observed on AIX, but possible with any platform that uses the PollingWatchService implementation.

      A failing compliance test highlighted issues in the PollingWatchService implementation of the WatchService API. The test was failing due to timeout after 10s. The root of the cause was found to be a delay between when the polling thread was created for a WatchKey, and when it began polling for changes. JDK-8285956 reduced this delay, however some tests continued to fail due to timeout.

            Assignee:
            Tyler Steele
            Reporter:
            Tyler Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: