java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException: Timedout waiting for reply

JIRA | Shimizu Sho | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NettyMessagingManagerTest.testSendAndReceive() sometimes occurs time out. Here is a log when it occured. [https://jenkins.onosproject.org/job/onos-gerrit-buck/5014/console] {quote} 08:33:20 FAIL CACHED 1 Passed 0 Skipped 1 Failed org.onosproject.store.cluster.messaging.impl.NettyMessagingManagerTest 08:33:20 FAILURE org.onosproject.store.cluster.messaging.impl.NettyMessagingManagerTest testSendAndReceive: java.util.concurrent.TimeoutException: Timedout waiting for reply 08:33:20 java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException: Timedout waiting for reply 08:33:20 at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:326) 08:33:20 at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:338) 08:33:20 at java.util.concurrent.CompletableFuture.uniRelay(CompletableFuture.java:911) 08:33:20 at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:899) 08:33:20 at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) 08:33:20 at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$Callback.lambda$completeExceptionally$1(NettyMessagingManager.java:598) 08:33:20 at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$Callback.completeExceptionally(NettyMessagingManager.java:598) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$1.onRemoval(NettyMessagingManager.java:117) 08:33:20 at com.google.common.cache.LocalCache.processPendingNotifications(LocalCache.java:1960) 08:33:20 at com.google.common.cache.LocalCache$Segment.runUnlockedCleanup(LocalCache.java:3475) 08:33:20 at com.google.common.cache.LocalCache$Segment.postWriteCleanup(LocalCache.java:3451) 08:33:20 at com.google.common.cache.LocalCache$Segment.remove(LocalCache.java:3122) 08:33:20 at com.google.common.cache.LocalCache.remove(LocalCache.java:4188) 08:33:20 at com.google.common.cache.LocalCache$LocalManualCache.invalidate(LocalCache.java:4816) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.dispatchLocally(NettyMessagingManager.java:556) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.access$900(NettyMessagingManager.java:94) 08:33:20 at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:503) 08:33:20 at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) 08:33:20 at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) 08:33:20 at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) 08:33:20 at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) 08:33:20 at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) 08:33:20 at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911) 08:33:20 at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) 08:33:20 at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:572) 08:33:20 at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:513) 08:33:20 at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:427) 08:33:20 at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:399) 08:33:20 at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140) 08:33:20 at java.lang.Thread.run(Thread.java:745) 08:33:20 Caused by: java.util.concurrent.TimeoutException: Timedout waiting for reply 08:33:20 ... 30 more 08:33:20 {quote}

    JIRA | 5 months ago | Shimizu Sho
    java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException: Timedout waiting for reply

    Root Cause Analysis

    1. java.util.concurrent.TimeoutException

      Timedout waiting for reply

      at org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$1.onRemoval()
    2. org.onosproject.store
      NettyMessagingManager$1.onRemoval
      1. org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$1.onRemoval(NettyMessagingManager.java:117)
      1 frame
    3. Guava
      LocalCache$LocalManualCache.invalidate
      1. com.google.common.cache.LocalCache.processPendingNotifications(LocalCache.java:1960)
      2. com.google.common.cache.LocalCache$Segment.runUnlockedCleanup(LocalCache.java:3475)
      3. com.google.common.cache.LocalCache$Segment.postWriteCleanup(LocalCache.java:3451)
      4. com.google.common.cache.LocalCache$Segment.remove(LocalCache.java:3122)
      5. com.google.common.cache.LocalCache.remove(LocalCache.java:4188)
      6. com.google.common.cache.LocalCache$LocalManualCache.invalidate(LocalCache.java:4816)
      6 frames
    4. org.onosproject.store
      NettyMessagingManager$InboundMessageDispatcher.channelRead0
      1. org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.dispatchLocally(NettyMessagingManager.java:556)
      2. org.onosproject.store.cluster.messaging.impl.NettyMessagingManager.access$900(NettyMessagingManager.java:94)
      3. org.onosproject.store.cluster.messaging.impl.NettyMessagingManager$InboundMessageDispatcher.channelRead0(NettyMessagingManager.java:503)
      3 frames
    5. Netty
      SingleThreadEventExecutor$2.run
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      3. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      4. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      5. io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      6. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
      7. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      10. io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
      11. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      13. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
      14. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      15. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:572)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:513)
      17. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:427)
      18. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:399)
      19. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
      19 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame