Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-332

BGPSession stablishment fails because BGPSessionImpl seems to be reused

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 4780

    Description

      Steps:
      Connect and configure 2 BGP Peers.
      Run ODL, and connect one Peer.
      Try to connect the 2 peer.

      2015-12-15 13:33:56,510 | WARN | oupCloseable-2-4 | DefaultChannelPipeline | 102 - io.netty.common - 4.0.33.Final | An exception was thrown by a user handler's exceptionCaught() method while handling the following exception:
      java.lang.IllegalStateException: complete already: DefaultPromise@ef1254c(success: BGPSessionImpl

      {channel=[id: 0x2ec2fe69, /192.168.56.110:54551 => /192.168.56.101:1790], state=UP}

      )
      at io.netty.util.concurrent.DefaultPromise.setFailure(DefaultPromise.java:418)[102:io.netty.common:4.0.33.Final]
      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.negotiationFailedCloseChannel(AbstractBGPSessionNegotiator.java:241)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelRead(AbstractBGPSessionNegotiator.java:280)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[103:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)[104:io.netty.codec:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)[104:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[103:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)[104:io.netty.codec:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)[104:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[103:io.netty.transport:4.0.33.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[102:io.netty.common:4.0.33.Final]
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[102:io.netty.common:4.0.33.Final]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
      Caused by: java.lang.IllegalStateException: complete already: DefaultPromise@ef1254c(success: BGPSessionImpl

      {channel=[id: 0x2ec2fe69, /192.168.56.110:54551 => /192.168.56.101:1790], state=UP}

      )
      at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:400)[102:io.netty.common:4.0.33.Final]
      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.negotiationSuccessful(AbstractBGPSessionNegotiator.java:235)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.handleMessage(AbstractBGPSessionNegotiator.java:150)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.AbstractBGPSessionNegotiator.channelRead(AbstractBGPSessionNegotiator.java:277)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      ... 19 more
      2015-12-15 13:33:56,510 | TRACE | oupCloseable-2-4 | BGPByteToMessageDecoder | 255 - org.opendaylight.bgpcep.bgp-rib-impl - 0.5.0.SNAPSHOT | No more content in incoming buffer.
      2015-12-15 13:33:56,510 | DEBUG | oupCloseable-2-4 | BGPSessionImpl | 255 - org.opendaylight.bgpcep.bgp-rib-impl - 0.5.0.SNAPSHOT | Channel [id: 0x1a945d29, /192.168.56.102:56027 :> /192.168.56.101:1790] inactive.
      2015-12-15 13:33:56,510 | INFO | oupCloseable-2-4 | BGPPeer | 255 - org.opendaylight.bgpcep.bgp-rib-impl - 0.5.0.SNAPSHOT | Session with peer 192.168.56.102 went down
      java.io.IOException: End of input detected. Close the session.
      at org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl.endOfInput(BGPSessionImpl.java:228)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl.channelInactive(BGPSessionImpl.java:417)[255:org.opendaylight.bgpcep.bgp-rib-impl:0.5.0.SNAPSHOT]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:218)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:204)[103:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:332)[104:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:218)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:204)[103:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:332)[104:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:218)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:204)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:828)[103:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:625)[103:io.netty.transport:4.0.33.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)[102:io.netty.common:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)[103:io.netty.transport:4.0.33.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[102:io.netty.common:4.0.33.Final]
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[102:io.netty.common:4.0.33.Final]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
      2015-12-15 13:33:56,513 | INFO | oupCloseable-2-4 | BGPSessionImpl | 255 - org.opendaylight.bgpcep.bgp-rib-impl - 0.5.0.SNAPSHOT | Closing session: BGPSessionImpl

      {channel=[id: 0x1a945d29, /192.168.56.102:56027 :> /192.168.56.101:1790], state=UP}

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            cdgasparini Claudio David Gasparini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: