Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add authoritative flag for topic policy to avoid redirect loop (#11051)
* Add authoritative flag for topic policy to avoid redirect loop 1. Add authoritative flag for topic policy to avoid redirect loop 2. Prevent set topic policy on a non-existing topic 3. Prevent set topic policy on a partition of a partitioned topic 4. Redirect to the broker which is owner of the partition-0 for a partitioned topic when setting topic policy 5. Don't remove policy cache when the topic removed from the broker, this will lead to the topic come back, but can't find the topic policy, since the namespace does not removed from the broker, we will not read from the system topic again. For this case we already handled when the broker does not provide service for that namespace, the topic policy cache under the namespace will be removed. (cherry picked from commit 0b67438)
- Loading branch information
1 parent
9e38f07
commit be68a26
Showing
6 changed files
with
1,057 additions
and
950 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.