<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello Vinay,<div><br><div><div>On Aug 5, 2015, at 7:37 PM, Vinay Purohit <<a href="mailto:vp@cloudjunxion.com">vp@cloudjunxion.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Im writing to inquire about JDK Bug# 8079620 which appears to be very similar to the issue we are seeing. The resolution of that bug seems unclear.</div></blockquote><div><br></div><div>It appears unclear to me as well and I have made an inquiry as to the reason for its current status.</div><br><blockquote type="cite"><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">We see the problem with Java 8 (r45, might be in others as well, not sure) when using the Watch service on a Mac OS X platform. The service is being used for monitoring creation/deletion/modification of files under the folder registered with the Watch service. Unfortunately rapid creation/renaming of subfolders under the registered directory results in a hung thread. The stack trace is shown below:</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><pre class="prettyprinted lang-java prettyprint" style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: rgb(57, 51, 24); word-wrap: normal; widows: 1; background-color: rgb(238, 238, 238);"><code class="" style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService$PollingWatchKey</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">disable</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">296</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">doPrivilegedRegister</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">169</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">access$000</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">45</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService$2</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">run</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">128</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService$2</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">run</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">125</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">security</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">AccessController</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">doPrivileged</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">Native</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">Method</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);">register</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">PollingWatchService</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">124</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at sun</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">nio</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">fs</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">UnixPath</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);">register</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);">UnixPath</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">java</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);">897</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">
at myClass</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">functionFoo </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">myClass</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">:</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">xyz</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;">    </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;"><</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;"> Invoke </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);">register</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px;">()</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px;"> here.</span></code></pre></div></blockquote><div>This indeed looks like the same problem described in <a href="https://bugs.openjdk.java.net/browse/JDK-8079620">https://bugs.openjdk.java.net/browse/JDK-8079620</a>. I have run the test provided in the description of that issue on Mac OS 10.9.5 using both the official build of JDK 8u40 and my development build of JDK 9. I was not able to reproduce the problem with either version but of course one test run is not a guarantee.</div><br><blockquote type="cite"><div class="" style="font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class=""><div class="" style="margin: 0in 0in 0.0001pt;"><font face="Times New Roman"><span style="font-size: 14px;">The stack trace and other details are also posted on StackOverflow:</span></font></div></div><div class="" style="font-family: 'Times New Roman', serif; font-size: 12pt; font-weight: normal; font-style: normal; margin: 0in 0in 0.0001pt;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-weight: normal; font-style: normal;"><div class="" style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><a href="http://stackoverflow.com/questions/31780727/java-os-x-watchservice-deadlocks" class="" style="color: purple;">http://stackoverflow.com/questions/31780727/java-os-x-watchservice-deadlocks</a><o:p class=""></o:p></div></div><div class="" style="font-family: Helvetica; font-size: 12px; font-weight: normal; font-style: normal;"><br></div><div class="" style="font-family: Helvetica; font-size: 12px; font-weight: normal; font-style: normal;">Im happy to provide more details or perform more experiments, but would first like to confirm I have reached the right forum for discussing this issue. </div></div></blockquote></div><br></div><div>This is the correct forum for java.nio issues.</div><div><br></div><div>It would be helpful if you were able to provide a standalone test case. It would be even better if you were to file an issue including the test case via this page: <a href="http://bugs.java.com/">http://bugs.java.com/</a>. This will ensure that the problem will be tracked and addressed in due course. This is especially important if the problem is not in fact a duplicate of JDK-8079620.</div><div><br></div><div>Thanks,</div><div><br></div><div>Brian</div></body></html>