-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][admin] Backlog quota's policy is null which causes a NPE #24192
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
Conversation
|
/pulsarbot rerun-failure-checks |
checkstyle failed |
lhotari
left a comment
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.
The test org.apache.pulsar.broker.admin.AdminApiTest.testRetentionAndBacklogQuotaCheck fails.
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/TopicPoliciesTest.java
Show resolved
Hide resolved
043a58c to
0c25c11
Compare
lhotari
left a comment
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.
LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #24192 +/- ##
============================================
+ Coverage 73.57% 74.23% +0.65%
+ Complexity 32624 32178 -446
============================================
Files 1877 1866 -11
Lines 139502 144750 +5248
Branches 15299 16534 +1235
============================================
+ Hits 102638 107448 +4810
+ Misses 28908 28811 -97
- Partials 7956 8491 +535
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
(cherry picked from commit cb018d9)
(cherry picked from commit cb018d9)
(cherry picked from commit cb018d9)
Motivation
pulsar-admin namespaces set-backlog-quota <namespace>does not allow a null attributepolicy, but HTTP APIPOST /admin/v2/namespaces/{namespace}/backlogQuotaallows.pulsar-admin topicPolicies set-backlog-quota <namespace>does not allow a null attributepolicy, but HTTP APIPOST /admin/v2/namespaces/{topic}/backlogQuotaallows.It leads a NPE
Modifications
Let HTTP API does not allow the null
policyas wellDocumentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x