RFR: 8171432: (fs) WindowsWatchService.Poller::run does not call ReadDirectoryChangesW after a ERROR_NOTIFY_ENUM_DIR
Brian Burkhalter
bpb at openjdk.org
Wed Dec 3 00:01:25 UTC 2025
On Tue, 2 Dec 2025 23:53:14 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Call `ReadDirectoryChangesW` in `WindowsWatchService::Poller.run` if the `ERROR_NOTIFY_ENUM_DIR` error occurs.
This change was tested by artificially setting the error code to `ERROR_NOTIFY_ENUM_DIR` in `WindowsWatchService.java` after a certain number of iterations in `run()`. Without the proposed code change, the test `LotsOfEvents` failed but passed with the code change in place.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28620#issuecomment-3604435037
More information about the nio-dev
mailing list