PulsarService.getBrokerId() will fail with NPE if it's called before the broker has been started.
Modifications
don't use brokerId in log message in org.apache.pulsar.broker.service.BrokerService#checkTopicNsOwnership method since the method might get called in the startup sequence, before brokerId is available.
Additional Context
There's a more complete fix to address the root cause, that's #22977.
Fixes #22975
Motivation
PulsarService.getBrokerId() will fail with NPE if it's called before the broker has been started.
Modifications
org.apache.pulsar.broker.service.BrokerService#checkTopicNsOwnership
method since the method might get called in the startup sequence, before brokerId is available.Additional Context
There's a more complete fix to address the root cause, that's #22977.
Documentation
doc
doc-required
doc-not-needed
doc-complete