Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] NPE of getAndCreateChannel in NettyRemotingClient #8061

Closed
3 tasks done
fujian-zfj opened this issue Apr 24, 2024 · 0 comments · Fixed by #8064
Closed
3 tasks done

[Bug] NPE of getAndCreateChannel in NettyRemotingClient #8061

fujian-zfj opened this issue Apr 24, 2024 · 0 comments · Fixed by #8064

Comments

@fujian-zfj
Copy link
Contributor

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • 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

It may caused by 'getAndCreateChannelAsync(addr).awaitUninterruptibly()' in method getAndCreateChannel.

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant