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

fix: pull queries should work across nodes (#4169) #4271

Conversation

big-andy-coates
Copy link
Contributor

@big-andy-coates big-andy-coates commented Jan 10, 2020

Description

Backport of #4169 - NO REVIEW NEEDED

Fixes: #4142
Fixes: #4151
Fixes: #4152

Introduces a new inter.node.listener that can be used to specify a URL that the node can be contacted on by other nodes. This can be different to the listeners defined in listeners. This can be required if listeners is set to a wildcard address, i.e. IPv4 0.0.0.0 or IPv6 [::], or if the node sits behind network infrastructure that requires other nodes to reach it using a different URL.

If inter.node.listener is not set it still defaults to the first listener in listener config. However, it now replaces an wildcard address with localHost. This means inter-node comms is still possible for nodes running on the same host.

Warnings are logged if the inter-node listener resolves to a loopback or local address.

(cherry picked from commit 0ac71cf)

Testing done

Usual.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

Backport of confluentinc#4169

Fixes: confluentinc#4142
Fixes: confluentinc#4151
Fixes: confluentinc#4152

Introduces a new `inter.node.listener` that can be used to specify a URL that the node can be contacted on by other nodes.  This can be different to the listeners defined in `listeners`. This can be required if `listeners` is set to a wildcard address, i.e. IPv4 `0.0.0.0` or IPv6 `[::]`, or if the node sits behind network infrastructure that requires other nodes to reach it using a different URL.

If `inter.node.listener` is not set it still defaults to the first listener in `listener` config. However, it now replaces an wildcard address with `localHost`. This means inter-node comms is still possible for nodes running on the same host.

Warnings are logged if the inter-node listener resolves to a loopback or local address.

(cherry picked from commit 0ac71cf)
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

didn't do a review ;)

@big-andy-coates
Copy link
Contributor Author

Merging after 5.4.0 release.

@big-andy-coates big-andy-coates merged commit 2369213 into confluentinc:5.4.x Jan 26, 2020
@big-andy-coates big-andy-coates deleted the back_port_pull_query_multi_server_fix branch January 26, 2020 14:26
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