forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backoff for setting for getting topic policies. (apache#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.
- Loading branch information
1 parent
c798eaf
commit bebaadf
Showing
19 changed files
with
438 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.