-
Notifications
You must be signed in to change notification settings - Fork 1k
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: revert default listeners value and update docs #3314
fix: revert default listeners value and update docs #3314
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have enough knowledge of IPv6, but if this change works for both IPv4 and IPv6 and it looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loopback is a different interface. Have you tried using this config on an instance with an ipv6 address and testing whether you can talk to it?
@rodesai ,hmm you're right. The CLI can't communicate with just http://[::1]:8088. Do you have any idea of what the change would need to be then to distinguish the ipv4 from ipv6 so the initialization doesn't fail when they're both passed in? Or should this just be a docs change to indicate you can only specify one of http://[::]:8088 or http://0.0.0.0:8088? |
With a little bit more research it looks as though IPv6 handling may be some what platform dependant. Some platforms automatically route IPv4 to IPv6 listening ports and vice-versa. Others do not. On those that do, defining two listeners will result in a port clash, as the second listener is not needed. On those that don't, adding the second listener is often the way to go. So... it looks like there is no one-size-fits-all for IPv6 handling. I think the best we can do is have the default |
48bdf27
to
1dfb5ab
Compare
1dfb5ab
to
e84aea8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related issue, #3319 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - sync with @rodesai before shipping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Follow up to: #3310
listeners=http://0.0.0.0:8088,http://[::]:8088
change in the previous PR will cause the server initialization to fail with:This doesn't happen when
listeners=http://[::]:8088
indicates that both listeners are registered.
http://[::]:8088
is considered the same ashttp://0.0.0.0:8088
Testing done
./bin/ksql-server-start ./config/ksql-server.properties
with
listeners=http://[::]:8088
Reviewer checklist