Skip to content

KAFKA-12702: Fix NPE in networkListeners from BrokerServer in 2.8#10586

Merged
chia7712 merged 2 commits intoapache:2.8from
wenbingshen:2.8
Apr 25, 2021
Merged

KAFKA-12702: Fix NPE in networkListeners from BrokerServer in 2.8#10586
chia7712 merged 2 commits intoapache:2.8from
wenbingshen:2.8

Conversation

@wenbingshen
Copy link
Copy Markdown
Member

Link to KAFKA-12702 , 10575

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@wenbingshen
Copy link
Copy Markdown
Member Author

Dear @chia7712 , I request apply this pr to the 2.8 branch.

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wenbingshen thanks for your contribution :)

config.advertisedListeners.foreach { ep =>
networkListeners.add(new Listener().
setHost(ep.host).
setHost(if (Utils.isBlank(ep.host)) InetAddress.getLocalHost.getCanonicalHostName else ep.host).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it is ok to check blank manually. It won't bring huge code conflicts.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it is ok to check blank manually. It won't bring huge code conflicts.

Good suggestion.Submit your feedback. :)

@chia7712 chia7712 merged commit 35d47f4 into apache:2.8 Apr 25, 2021
@chia7712
Copy link
Copy Markdown
Member

@wenbingshen thanks for this backport!

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 this pull request may close these issues.

2 participants