New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][broker] Fix delete system topic clean topic policy #18823
Merged
congbobo184
merged 6 commits into
apache:master
from
liangyepianzhou:xiangying/fix/topic/fix_clear_topic_policy
Dec 9, 2022
Merged
[fix][broker] Fix delete system topic clean topic policy #18823
congbobo184
merged 6 commits into
apache:master
from
liangyepianzhou:xiangying/fix/topic/fix_clear_topic_policy
Dec 9, 2022
Conversation
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
### Motivation If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. ### Modification Only change_events topic do not need to clear topic policies.
liangyepianzhou
requested review from
eolivelli,
codelipenghui,
congbobo184 and
Technoboy-
December 8, 2022 13:17
congbobo184
reviewed
Dec 9, 2022
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
Show resolved
Hide resolved
congbobo184
reviewed
Dec 9, 2022
pulsar-broker/src/test/java/org/apache/pulsar/broker/transaction/TransactionTest.java
Outdated
Show resolved
Hide resolved
…/fix_clear_topic_policy
Codecov Report
@@ Coverage Diff @@
## master #18823 +/- ##
============================================
+ Coverage 46.42% 49.41% +2.98%
- Complexity 10437 10853 +416
============================================
Files 703 703
Lines 68816 68828 +12
Branches 7377 7377
============================================
+ Hits 31950 34011 +2061
+ Misses 33252 31131 -2121
- Partials 3614 3686 +72
Flags with carried forward coverage won't be shown. Click here to find out more.
|
congbobo184
approved these changes
Dec 9, 2022
poorbarcode
approved these changes
Dec 9, 2022
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
Show resolved
Hide resolved
codelipenghui
approved these changes
Dec 9, 2022
congbobo184
pushed a commit
to congbobo184/pulsar
that referenced
this pull request
Dec 9, 2022
If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. Only change_events topic do not need to clear topic policies. (cherry picked from commit 93c41de)
Merged
14 tasks
liangyepianzhou
added a commit
that referenced
this pull request
Dec 9, 2022
If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. Only change_events topic do not need to clear topic policies. (cherry picked from commit 93c41de)
congbobo184
added a commit
that referenced
this pull request
Dec 10, 2022
…18823) (#18831) cherry-pick #18823 ### Motivation If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. ### Modification Only change_events topic do not need to clear topic policies. ### Matching PR in forked repository PR in forked repository: liangyepianzhou#16
3 tasks
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 26, 2022
### Motivation If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. ### Modification Only change_events topic do not need to clear topic policies.
Demogorgon314
pushed a commit
to Demogorgon314/pulsar
that referenced
this pull request
Dec 29, 2022
### Motivation If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. ### Modification Only change_events topic do not need to clear topic policies.
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
### Motivation If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. ### Modification Only change_events topic do not need to clear topic policies.
4 tasks
poorbarcode
added a commit
that referenced
this pull request
Mar 9, 2023
Motivation: After PR #18823, The cmd delete topic will fail if disabled the feature system topic. Modifications: do not delete the system policy if disabled the feature system topic
Technoboy-
pushed a commit
that referenced
this pull request
Mar 13, 2023
Motivation: After PR #18823, The cmd delete topic will fail if disabled the feature system topic. Modifications: do not delete the system policy if disabled the feature system topic
15 tasks
liangyepianzhou
added a commit
that referenced
this pull request
Mar 16, 2023
If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted. Only change_events topic do not need to clear topic policies. (cherry picked from commit 93c41de)
Cherry-picked by #19835 |
15 tasks
Technoboy-
added a commit
that referenced
this pull request
Mar 20, 2023
poorbarcode
added a commit
that referenced
this pull request
May 6, 2023
coderzc
pushed a commit
that referenced
this pull request
May 31, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/broker
cherry-picked/branch-2.9
Archived: 2.9 is end of life
cherry-picked/branch-2.10
cherry-picked/branch-2.11
doc-not-needed
Your PR changes do not impact docs
ready-to-test
release/2.9.4
release/2.10.3
release/2.11.1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
If users set topic policy for system topic, then delete this system topic, the topic policy should be deleted.
Modification
Only change_events topic do not need to clear topic policies.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: liangyepianzhou#16