Skip to content

Conversation

@315157973
Copy link
Contributor

@315157973 315157973 commented Sep 8, 2020

Fixes #7863

Motivation

  1. Topic level policy will be overwritten by namespace level
  2. After removing the topic level policy, DispatchLimiter does not take effect, the namespace level policy should be used

Modifications

1)If there is a topic-level policy, it will not be overwritten by the namespace-level policy when the policy is updated
2)When removing topic-level policy, namespace-level policy will be used. If the namespace-level policy does not exist, the broker level will be used

Verifying this change

unit test:
TopicPoliciesTest#testPolicyOverwrittenByNamespaceLevel

@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

@315157973
Copy link
Contributor Author

/pulsarbot run-failure-checks

@jiazhai jiazhai added this to the 2.7.0 milestone Sep 8, 2020
@jiazhai jiazhai merged commit 8933d8d into apache:master Sep 9, 2020
@315157973 315157973 deleted the rate branch September 14, 2020 06:45
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Oct 3, 2020
Fixes apache#7863

### Motivation
1) Topic level policy will be overwritten by namespace level
2) After removing the topic level policy, `DispatchLimiter` does not take effect,  the namespace level policy should be used

### Modifications
1)If there is a topic-level policy, it will not be overwritten by the namespace-level policy when the policy is updated
2)When removing topic-level policy, namespace-level policy will be used. If the namespace-level policy does not exist, the broker level will be used

### Verifying this change
unit test:
TopicPoliciesTest#testPolicyOverwrittenByNamespaceLevel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants