Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7368

CancelledKeyException from accepting socket during Broker shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-6.1
    • Broker-J
    • None

    Description

      We saw the following test failure on trunk whilst the test was shutting down a Broker.

      https://builds.apache.org/view/M-R/view/Qpid/job/Qpid-Java-Java-Test-JDK1.8/lastCompletedBuild/testReport/org.apache.qpid.transport/ProtocolNegotiationTest/testWrongProtocolHeaderSent_BrokerRespondsWithSupportedProtocol/

      Thread terminated due to uncaught exception

      java.nio.channels.CancelledKeyException
      	at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
      	at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)
      	at java.nio.channels.SelectionKey.isAcceptable(SelectionKey.java:360)
      	at org.apache.qpid.server.transport.SelectorThread$SelectionTask.processSelectionKeys(SelectorThread.java:167)
      	at org.apache.qpid.server.transport.SelectorThread$SelectionTask.performSelect(SelectorThread.java:305)
      	at org.apache.qpid.server.transport.SelectorThread$SelectionTask.run(SelectorThread.java:87)
      	at org.apache.qpid.server.transport.SelectorThread.run(SelectorThread.java:462)
      	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)
      

      Attachments

        Activity

          People

            lorenz.quack Lorenz Quack
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: