8203765: java/nio/channels/Selector/SelectAndClose: add some prints and @intermittent tag

Brian Burkhalter brian.burkhalter at oracle.com
Thu May 24 19:41:01 UTC 2018


On May 24, 2018, at 9:29 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:

> On May 24, 2018, at 9:14 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
>> Waiting for the selectThread to terminate would at least allow you to capture the CloseSelectorException (assuming that is being thrown).
> 
> I did not see a CSE mentioned in the issue description / comments unless I missed something.

Updated version: http://cr.openjdk.java.net/~bpb/8203765/webrev.01/

Diff against version .00:

--- a/test/jdk/java/nio/channels/Selector/SelectAndClose.java
+++ b/test/jdk/java/nio/channels/Selector/SelectAndClose.java
@@ -77,6 +77,9 @@
         if (!awakened)
             selector.wakeup();
 
+        // Wait for select() thread to finish.
+        selectThread.join();
+
         // Correct result is true and true
         if (!awakened || !closed) {
             System.err.format("selectThread is %s%n”,

Thanks,

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20180524/f7185431/attachment.html>


More information about the nio-dev mailing list