-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Search before reporting
- I searched in the issues and found nothing similar.
Read release policy
- I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
User environment
Pulsar Version: 4.0.7 (3 broker, 3 bookies, 3 zookeeper)
OS: Ubuntu 24.04
Java: OpenJDK 21.0.8
Broker Client Authentication is enabled, for the brokers as well as for the function workers (running with the brokers)
Issue Description
One of our brokers restarted and wasn't able to authenticate anymore. I'm not sure, but I think it's actually the function worker client that cannot authenticate, because when I start the broker with disabled function workers, it works.
I pasted error code below and uploaded the stacktrace.
We recently deployed a new function, but the cluster was running without any problems since then. I'm not sure if those two things correlate..
Error messages
Message: Topic creation encountered an exception by initialize topic policies service. topic_name=persistent://public/functions/assignments error_message=java.lang.RuntimeException: java.lang.RuntimeException: org.apache.pulsar.broker.PulsarServerException: org.apache.pulsar.client.api.PulsarClientException$AuthenticationException: Unable to retrieve OAuth 2.0 server metadata
Reproducing the issue
I tried to restart the second broker to see if the problem is maybe constrained only to one machine, but it's the same with this broker too..
Additional information
Are you willing to submit a PR?
- I'm willing to submit a PR!