codelipenghui opened a new pull request #11487:
URL: https://github.com/apache/pulsar/pull/11487
### Motivation
Currently, if we start a new broker which does not owned any namepsaces
bundles.
Then when use the pulsar-admin to setting or getting topic policies, we will
get
`topic policies have not been initialized yet` error log and the admin
operation will
get failed.
The root cause is we are failed immediately without any retry while the
topic polices
cache have not init yet. So the PR to introduce the backoff for setting or
getting
the topic policy if encounter the topic policies cache not init exception
### Verifying this change
Remove the cache init check for the tests.
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]