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

java/nio/channels/AsyncCloseAndInterrupt.java fails intermittently: SocketChannel/finishConnect/close threw an exception

XMLWordPrintable

    • x86_64
    • linux

      High intermittent failure on Stockholm [linux_i586_2.6-product-all; linux_x64_2.6-product-c2] machines
      ------------------------------------------------------

      TEST: java/nio/channels/AsyncCloseAndInterrupt.java
      JDK under test: (/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product)
      java version "1.8.0_66-internal"
      Java(TM) SE Runtime Environment (build 1.8.0_66-internal-20161115151956.nikitaja.jdk8u-dev-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b00, mixed mode)


      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.051 seconds
      messages:
      command: build AsyncCloseAndInterrupt
      reason: Named class compiled on demand
      Test directory:
        compile: AsyncCloseAndInterrupt
      elapsed time (seconds): 0.051

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.051 seconds
      messages:
      command: compile -XDignore.symbol.file=true /opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels/AsyncCloseAndInterrupt.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.051
      rerun:
      DISPLAY=sthjprt.uk.oracle.com:568 \
      HOME=/opt/jprt/jprtadm \
      LANG=C \
      LC_ALL=C \
      LC_CTYPE= \
      PATH=/bin:/usr/bin \
          /opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product/bin/javac \
              -J-ea \
              -J-esa \
              -J-server \
              -J-Xmx512m \
              -J-Duser.home=/opt/jprt/T/P1/151956.nikitaja \
              -J-Djava.io.tmpdir=/opt/jprt/T/P1/151956.nikitaja/io/linux_x64_2.6-product-c2-jdk_nio \
              -J-server \
              -J-Dtest.class.path.prefix=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -J-Dtest.src=/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -J-Dtest.src.path=/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -J-Dtest.classes=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels \
              -J-Dtest.class.path=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels \
              -J-Dtest.vm.opts='-ea -esa -server -Xmx512m' \
              -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-server -J-Xmx512m' \
              -J-Dtest.compiler.opts= \
              -J-Dtest.java.opts='-Duser.home=/opt/jprt/T/P1/151956.nikitaja -Djava.io.tmpdir=/opt/jprt/T/P1/151956.nikitaja/io/linux_x64_2.6-product-c2-jdk_nio -server' \
              -J-Dtest.jdk=/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product \
              -J-Dcompile.jdk=/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product \
              -J-Dtest.timeout.factor=4.0 \
              -d /opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels \
              -sourcepath /opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -classpath /opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product/lib/tools.jar \
              -XDignore.symbol.file=true /opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels/AsyncCloseAndInterrupt.java

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: SocketChannel/finishConnect/interrupt threw an exception
      REASON: User specified action: run main/othervm AsyncCloseAndInterrupt
      TIME: 6.987 seconds
      messages:
      command: main AsyncCloseAndInterrupt
      reason: User specified action: run main/othervm AsyncCloseAndInterrupt
      elapsed time (seconds): 6.987
      STDOUT:
      STDERR:

      FileChannel/transferTo/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/transferTo/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException
      WARNING: transferTo/close not tested

      FileChannel/transferFrom/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/transferFrom/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException
      WARNING: transferFrom/close not tested

      FileChannel/read/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/read/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/read/close
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      FileChannel/readv/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/readv/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/readv/close
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      FileChannel/write/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/write/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/write/close
      Wrote 65536 bytes
      Channel closed

      FileChannel/writev/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/writev/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      FileChannel/writev/close
      Wrote 65536 bytes
      Channel closed

      SocketChannel/read/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/read/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/read/close
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      SocketChannel/read/shutdown-input
      Read returned -1
      Channel open, input shutdown

      SocketChannel/readv/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/readv/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/readv/close
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      SocketChannel/readv/shutdown-input
      Read returned -1
      Channel open, input shutdown

      SocketChannel/write/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/write/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/write/close
      Wrote 1351585 bytes
      Channel closed

      SocketChannel/write/shutdown-output
      Wrote 1351585 bytes
      Channel open, output shutdown

      SocketChannel/writev/interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/writev/pre-interrupt
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/writev/close
      Wrote 1351585 bytes
      Channel closed

      SocketChannel/writev/shutdown-output
      Wrote 1351585 bytes
      Channel open, output shutdown

      Wait for initial Pump
      Start pumping refuser ...

      SocketChannel/connect/interrupt
      connect wait for pumping refuser ...
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/connect/pre-interrupt
      connect wait for pumping refuser ...
      Thrown as expected: java.nio.channels.ClosedByInterruptException

      SocketChannel/connect/close
      connect wait for pumping refuser ...
      Thrown as expected: java.nio.channels.AsynchronousCloseException

      SocketChannel/finishConnect/interrupt
      finishConnect wait for pumping refuser ...
      java.lang.Exception: SocketChannel/finishConnect/interrupt threw an exception
      at TestThread.finishAndThrow(TestThread.java:80)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:602)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:609)
      at AsyncCloseAndInterrupt.main(AsyncCloseAndInterrupt.java:720)
      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:498)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: Connection succeeded
      at AsyncCloseAndInterrupt$16.doIO(AsyncCloseAndInterrupt.java:374)
      at AsyncCloseAndInterrupt$Tester.go(AsyncCloseAndInterrupt.java:485)
      at TestThread.run(TestThread.java:55)

      JavaTest Message: Test threw exception: java.lang.Exception: SocketChannel/finishConnect/interrupt threw an exception
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: SocketChannel/finishConnect/interrupt threw an exception
      rerun:
      DISPLAY=sthjprt.uk.oracle.com:568 \
      HOME=/opt/jprt/jprtadm \
      LANG=C \
      LC_ALL=C \
      LC_CTYPE= \
      PATH=/bin:/usr/bin \
      CLASSPATH=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product/lib/tools.jar:/opt/jprt/products/P1/jtreg4.1-latest/jtreg/lib/javatest.jar:/opt/jprt/products/P1/jtreg4.1-latest/jtreg/lib/jtreg.jar \
          /opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product/bin/java \
              -Dtest.class.path.prefix=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels:/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -Dtest.src=/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -Dtest.src.path=/opt/jprt/T/P1/151956.nikitaja/s/jdk/test/java/nio/channels \
              -Dtest.classes=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels \
              -Dtest.class.path=/opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/classes/java/nio/channels \
              -Dtest.vm.opts='-ea -esa -server -Xmx512m' \
              -Dtest.tool.vm.opts='-J-ea -J-esa -J-server -J-Xmx512m' \
              -Dtest.compiler.opts= \
              -Dtest.java.opts='-Duser.home=/opt/jprt/T/P1/151956.nikitaja -Djava.io.tmpdir=/opt/jprt/T/P1/151956.nikitaja/io/linux_x64_2.6-product-c2-jdk_nio -server' \
              -Dtest.jdk=/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product \
              -Dcompile.jdk=/opt/jprt/T/P1/151956.nikitaja/testproduct/linux_x64_2.6-product \
              -Dtest.timeout.factor=4.0 \
              -ea \
              -esa \
              -server \
              -Xmx512m \
              -Duser.home=/opt/jprt/T/P1/151956.nikitaja \
              -Djava.io.tmpdir=/opt/jprt/T/P1/151956.nikitaja/io/linux_x64_2.6-product-c2-jdk_nio \
              -server \
              com.sun.javatest.regtest.agent.MainWrapper /opt/jprt/T/P1/151956.nikitaja/s/jdk/testoutput/jdk_nio/JTwork/java/nio/channels/AsyncCloseAndInterrupt.d/main.0.jta

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: SocketChannel/finishConnect/interrupt threw an exception

            bpb Brian Burkhalter
            nikitaja Nikita Jain (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: