-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Function worker uses raw webService Port against adverisedListener and advertisedAddress #10951
Comments
the same thing has happened with the broker address here. my health check is failing because of this. |
@315157973 Would you mind checking this? |
Now the order of address acquisition is advertisedAddress, then advertisedListner, then hostname. |
@315157973 yes. that's correct. |
Fixes #10951 ### Motivation The advertisedListener has its own port, and now we have no way to obtain the port of TLS and non-TLS advertisedListener except by setting the listenerName through the client. Therefore, brokerServiceUrl and webServiceUrl do not return the address and port of the advertisedListener
Fixes apache#10951 ### Motivation The advertisedListener has its own port, and now we have no way to obtain the port of TLS and non-TLS advertisedListener except by setting the listenerName through the client. Therefore, brokerServiceUrl and webServiceUrl do not return the address and port of the advertisedListener
Fixes #10951 ### Motivation The advertisedListener has its own port, and now we have no way to obtain the port of TLS and non-TLS advertisedListener except by setting the listenerName through the client. Therefore, brokerServiceUrl and webServiceUrl do not return the address and port of the advertisedListener (cherry picked from commit 99c84c4)
I believe that the root cause is that Pulsar is erroneously using the configured |
Fixes apache#10951 ### Motivation The advertisedListener has its own port, and now we have no way to obtain the port of TLS and non-TLS advertisedListener except by setting the listenerName through the client. Therefore, brokerServiceUrl and webServiceUrl do not return the address and port of the advertisedListener
Describe the bug
I am running Pulsar broker on docker and trying to run function worker as part of the broker. My advertisedListener IP is the IP of my host machine and I have a mapped worker port as well. But here, we are calling
getAppliedAdvertisedAddress
which returns my advertisedListner address and we are using the raw webServicePort against it. That code is 2 lines above. So it is forming a weird address advertisedAddress:webServicePort (hostMachineIP:dockerContainerPort) which is not allowing function workers to start. This has broken from Pulsar 2.8.0.To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be consistency in address formation. Either we should use advertisedListner/advertisedAddress with its port or we should use both raw broker address and raw webServicePort.
The text was updated successfully, but these errors were encountered: