-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] unify topic-level policies enable judgment conditions #19501
Conversation
@aloyszhang Please add the following content to your PR description and select a checkbox:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we'd better require users to set system topic enabled to true if they want to enable topic level policies. So that we don't need check both the system topic and topic policies is enabled in multiple places.
@mattisonchao @Technoboy- WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is meaningless to enable topic policy but not system topic.
Therefore, I think it would be better to do parameter verification at startup?
Make sense to me. WDYT about this @codelipenghui ? |
Agree |
The pr had no activity for 30 days, mark with Stale label. |
Since we will start the RC version of
So drag this PR to |
The pr had no activity for 30 days, mark with Stale label. |
15ef988
to
edd8578
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #19501 +/- ##
=============================================
- Coverage 73.58% 36.36% -37.22%
+ Complexity 32325 12605 -19720
=============================================
Files 1859 1723 -136
Lines 138263 134066 -4197
Branches 15153 14736 -417
=============================================
- Hits 101736 48749 -52987
- Misses 28644 78851 +50207
+ Partials 7883 6466 -1417
Flags with carried forward coverage won't be shown. Click here to find out more.
|
edd8578
to
6fc4f3a
Compare
Motivation
Broker may throw the following exception when deleting topic
This is caused by the configuration of
topicLevelPoliciesEnabled
andsystemTopicEnabled
are not consistent.Modifications
unify topic-level policies enable judgment conditions
Verifying this change
Documentation
doc-not-needed
Matching PR in forked repository
PR in forked repository:
aloyszhang#14