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

java/nio/channels/AsyncCloseAndInterrupt.java failed with java.nio.channels.ClosedChannelException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 10
    • core-libs

      ----------System.out:(0/0)----------
      ----------System.err:(147/5001)----------

      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 ...

      Wait for initial Pump done

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

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

      SocketChannel/connect/close
      connect waiting for pumping refuser ...
      connect waiting for pumping refuser ... done
      java.lang.Exception: SocketChannel/connect/close threw an exception
      at TestThread.finishAndThrow(TestThread.java:80)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:615)
      at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:638)
      at AsyncCloseAndInterrupt.main(AsyncCloseAndInterrupt.java:735)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.nio.channels.ClosedChannelException
      at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndUnconnected(SocketChannelImpl.java:610)
      at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:621)
      at AsyncCloseAndInterrupt$15.doIO(AsyncCloseAndInterrupt.java:358)
      at AsyncCloseAndInterrupt$Tester.go(AsyncCloseAndInterrupt.java:487)
      at TestThread.run(TestThread.java:55)

            Unassigned Unassigned
            jjiang John Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: