Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8078590

(ch) java/nio/channels/AsynchronousSocketChannel/Basic.java fails intermittently with "Should not complete"

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86_64
    • OS:
      solaris

      Description

      After switch the run to concurrency mode, start observe this test fails intermittently (though very rare) with "Should not complete".

      ----------System.out:(13/268)----------
      -- bind --
      -- socket options --
      -- connect --
      -- asynchronous close when connecting --
      -- asynchronous close when reading --
      -- asynchronous close when writing --
      -- cancel --
      -- read (1) --
      -- read (2) --
      -- read (3) --
      -- write (1) --
      -- write (2) --
      -- timeouts --
      ----------System.err:(27/1653)----------
      java.lang.RuntimeException: java.lang.RuntimeException: Should not complete
      at Basic.testTimeout(Basic.java:783)
      at Basic.testTimeout(Basic.java:738)
      at Basic.main(Basic.java:68)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:502)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: Should not complete
      at Basic$10.completed(Basic.java:756)
      at Basic$10.completed(Basic.java:754)
      at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:430)
      at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)
      at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)
      at sun.nio.ch.SolarisEventPort$EventHandlerTask.run(SolarisEventPort.java:209)
      at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at sun.misc.InnocuousThread.run(InnocuousThread.java:74)

        Issue Links

          Activity

          Hide
          amlu Amy Lu added a comment -
          This test uses Random:

          static final Random rand = new Random();
          Show
          amlu Amy Lu added a comment - This test uses Random: static final Random rand = new Random();
          Hide
          bpb Brian Burkhalter added a comment -
          Have we seen any failures since the apparently unique one which was the reason that this issue was filed?
          Show
          bpb Brian Burkhalter added a comment - Have we seen any failures since the apparently unique one which was the reason that this issue was filed?

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              amlu Amy Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: