Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4920

CancelledKeyException should stop client event reader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Final
    • 7.0.0.CR2
    • Remote Protocols
    • None

    Description

      04:13:05,785 INFO  [TestsuiteListener] (main) Running org.infinispan.server.test.client.hotrod.HotRodRemoteCacheIT#testCustomEventsDynamic
      04:13:06,005 WARN  [ClientListenerNotifier] (HotRod-client-async-pool-2) ISPN004039: Unable to complete reading event from server null
      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.isReadable(SelectionKey.java:289)
              at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:222)
              at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
              at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:245)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:101)
              at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:229)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      04:13:06,011 INFO  [TestsuiteListener] (main) Running org.infinispan.server.test.client.hotrod.HotRodRemoteCacheIT#testRemoveWithVersionAsync
      04:13:06,030 WARN  [ClientListenerNotifier] (HotRod-client-async-pool-2) ISPN004039: Unable to complete reading event from server null
      java.nio.channels.IllegalBlockingModeException
              at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)
              at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
              at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:245)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:101)
              at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:229)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

      The IllegalBlockingModeException then repeats for several tens/hundreds of MB of lines

      Also fails in HotRodCustomMarshallerEventIT: 
      05:39:05,133 INFO  [TestsuiteListener] (main) Running org.infinispan.server.test.client.hotrod.HotRodCustomMarshallerEventIT#testEventReceiveBasic
      05:39:05,267 INFO  [RemoteCacheManager] (main) ISPN004021: Infinispan version: 6.2.0.ER2-redhat-1
      05:39:05,313 WARN  [ClientListenerNotifier] (HotRod-client-async-pool-0) ISPN004039: Unable to complete reading event from server null
      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.isReadable(SelectionKey.java:289)
              at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:222)
              at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
              at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:245)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:101)
              at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:229)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      05:39:05,315 WARN  [ClientListenerNotifier] (HotRod-client-async-pool-0) ISPN004039: Unable to complete reading event from server null
      java.nio.channels.IllegalBlockingModeException
              at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)
              at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
              at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
              at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport.readByte(TcpTransport.java:179)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readMagic(Codec20.java:245)
              at org.infinispan.client.hotrod.impl.protocol.Codec20.readEvent(Codec20.java:101)
              at org.infinispan.client.hotrod.event.ClientListenerNotifier$EventDispatcher.run(ClientListenerNotifier.java:229)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            gzamarre Galder ZamarreƱo
            gzamarre Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: