-
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][admin] Fix delete tenant #19925
Conversation
Signed-off-by: nodece <[email protected]>
/pulsarbot rerun-failure-checks |
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.
Locally verified. LGTM.
Comments inline.
import java.util.List; | ||
import java.util.UUID; | ||
|
||
import static org.testng.Assert.*; |
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.
Expand star import and sort by:
pulsar/src/idea-code-style.xml
Lines 30 to 31 in 329e80b
<package name="" withSubpackages="true" static="true" /> | |
<package name="" withSubpackages="true" static="false" /> |
?
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.
Sure, I should use the static
import.
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTenantTest.java
Show resolved
Hide resolved
Signed-off-by: nodece <[email protected]>
/pulsarbot rerun-failure-checks |
Merging... @nodece Thanks for preparing this patch :) |
Signed-off-by: nodece <[email protected]> (cherry picked from commit 32ad906)
Fixes #19921
Motivation
Failed to delete tenant, see log:
When deleting a tenant, we delete a path that does not exist, so throw an exception.
Modifications
/admin/local-policies/{tenant}
exists, and then delete itVerifying this change
Added
AdminApiTenantTest
.Documentation
doc
doc-required
doc-not-needed
doc-complete