Review request: JDK-8014394 (fs) WatchService failing when watching \\server\$d

Alan Bateman Alan.Bateman at
Wed May 22 19:58:57 UTC 2013

On 22/05/2013 17:07, Alexey Utkin wrote:
>  Bug description:
> Here is the suggested fix:
> Summary:
> The problem source is the ERROR_MORE_DATA warning event that was 
> treated as error.
> The suggested fix contains limited refactoring that can be critical 
> for further support.
> :
Thanks for finding the ERROR_MORE_DATA case, that was missed in the 
original implementation and I can only assume just hasn't been noticed 
(maybe because watching a directory over CIFS wouldn't be as common as 

On expanding on the width of the completion key then this this increases 
the footprint of the key to WatchKey map which doesn't seem necessary 
(we originally choose an int as it should be more than enough for 
extreme usage over an extended period). Maybe it would be better to keep 
the WindowsNativeDispatcher.* changes to use jlong/ ULONG_PTR but revert 
the usage in WindowsWatchService to avoid the blot.


More information about the core-libs-dev mailing list