fujian-zfj opened a new issue, #8061:
URL: https://github.com/apache/rocketmq/issues/8061

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   all
   
   ### RocketMQ version
   
   latest
   
   ### JDK Version
   
   all
   
   ### Describe the Bug
   
   I found a npe bug in method getAndCreateChannel.
   
![image](https://github.com/apache/rocketmq/assets/10379042/9d6d8657-9855-442c-844a-c99019ef0311)
   
   It may caused by 'getAndCreateChannelAsync(addr).awaitUninterruptibly()' in 
method getAndCreateChannel.
   
   
![image](https://github.com/apache/rocketmq/assets/10379042/57fb435b-aec6-4e90-825e-fb1bccefa25b)
   
   Since channelFuture has got from getAndCreateChannelAsync and is judged not 
null, why not use channelFuture instead of getAndCreateChannelAsync again?
   
   
   ### Steps to Reproduce
   
   start broker
   
   ### What Did You Expect to See?
   
   no npe bug
   
   ### What Did You See Instead?
   
   an npe bug
   
   ### Additional Context
   
   _No response_


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org

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

Reply via email to