RFR: 8297275: WatchService delay with PollingWatchService causes test failures

Alan Bateman alanb at openjdk.org
Tue Nov 29 11:21:59 UTC 2022


On Mon, 28 Nov 2022 20:52:48 GMT, Tyler Steele <tsteele at openjdk.org> wrote:

> > Would it be possible to run this on the AIX system and paste in the output?
> 
> On AIX:
> 
> ```
> 2022-11-28T16:12:18.277871263Z
> 2022-11-28T16:12:18.281290513Z
> ```

Okay, so this means you've got high precision on the last modification time. So for these values it means that registering the directory will read initial time stamp as "2022-11-28T16:12:18.277871263Z", recording it in milliseconds. The file is modified (append in the example) and a short time later the WatchService should read the time stamp as "022-11-28T16:12:18.281290513Z", see that it has changed, and queue ENTRY_MODIFY event. So now I think we are back to why this is not happening on some AIX systems. Does it always fail on specific systems or it is intermittent? Any mount options or other config that enables or disables higher precision time stamps?

-------------

PR: https://git.openjdk.org/jdk/pull/10824


More information about the nio-dev mailing list