murong00 commented on a change in pull request #9819:
URL: https://github.com/apache/pulsar/pull/9819#discussion_r589124669
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/TenantsBase.java
##########
@@ -290,6 +290,12 @@ protected void internalDeleteTenant(AsyncResponse
asyncResponse, String tenant)
}
protected void internalDeleteTenantForcefully(AsyncResponse asyncResponse,
String tenant) {
+ if (!pulsar().getConfiguration().isForceDeleteTenantAllowed()) {
+ asyncResponse.resume(
+ new RestException(Status.FORBIDDEN, "Broker doesn't allow
forced deletion of tenants"));
Review comment:
Thanks for the tips, done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]