You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/04 06:48:55 UTC

[GitHub] [pulsar] hangc0276 opened a new issue #8196: Broker service close with exception

hangc0276 opened a new issue #8196:
URL: https://github.com/apache/pulsar/issues/8196


   **Describe the bug**
   A clear and concise description of what the bug is.
   When close broker server in unit test, it may throw `NullPointerException` in some times. the exceptions as follow.
   ```
   23:02:56.338 [pulsar-client-io-158-1] INFO  org.apache.pulsar.client.impl.ClientCnx - [id: 0xc89e1da4, L:/127.0.0.1:38226 ! R:localhost/127.0.0.1:37613] Disconnected
   23:02:56.338 [pulsar-io-145-1] WARN  org.apache.pulsar.broker.service.ServerCnx - [/127.0.0.1:38226] Got exception java.lang.NullPointerException
           at org.apache.pulsar.broker.service.ServerCnx.channelInactive(ServerCnx.java:218)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
           at io.netty.handler.flow.FlowControlHandler.channelInactive(FlowControlHandler.java:139)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
           at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389)
           at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241)
           at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262)
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248)
           at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901)
           at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:818)
           at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
           at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasksFrom(SingleThreadEventExecutor.java:428)
           at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:377)
           at io.netty.util.concurrent.SingleThreadEventExecutor.confirmShutdown(SingleThreadEventExecutor.java:763)
           at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:400)
           at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
           at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
           at java.lang.Thread.run(Thread.java:748)
   ```
   **To Reproduce**
   Steps to reproduce the behavior:
   run unit tests, it may throw `NullPointerException` in some time when do clean up and shutdown the broker service.
   
   **Expected behavior**
   Shutdown broker service without exception.
   
   **Screenshots**
   If applicable, add screenshots to help explain your problem.
   
   **Desktop (please complete the following information):**
    - OS: [e.g. iOS]
   
   **Additional context**
   Add any other context about the problem here.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie closed issue #8196: Broker service close with exception

Posted by GitBox <gi...@apache.org>.
sijie closed issue #8196:
URL: https://github.com/apache/pulsar/issues/8196


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org