lhotari opened a new pull request #9565: URL: https://github.com/apache/pulsar/pull/9565
Fixes #9564 ### Motivation There's a concurrency by in `org.apache.pulsar.broker.service.BrokerService.getTopic` method. When the topic has been retried with `createIfMissing=false`, for example by getting the statistics, for the topic, the pending future for this call will be in the cache and it's result will be returned for the call which currently calls this method with `createIfMissing=true`. ### Modifications Address the race condition and if `createIfMissing=true`, retry calling `getTopic` when the current result is `Optional.empty()`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
