-
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
[pulsar-broker] Added support to force deleting tenant #9677
Conversation
@BewareMyPower Would you please also take a look of this PR? |
// Expected: cannot delete non-empty tenant | ||
} | ||
|
||
// |
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.
What is your intention for this 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.
Just want to comment "delete tenant forcefully", sorry for the omission.
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.
Done.
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
/pulsarbot run-failure-checks |
@murong00 thanks for your coding work.
|
b9a4287
to
64330c5
Compare
|
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.
Thanks. Please update the description for all occurrences.
site2/docs/reference-pulsar-admin.md
Outdated
Options | ||
|Flag|Description|Default| | ||
|----|---|---| | ||
|`-f`, `--force`|Delete tenant forcefully by force deleting all namespaces under it|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.
|`-f`, `--force`|Delete tenant forcefully by force deleting all namespaces under it|false| | |
|`-f`, `--force`|Delete a tenant forcefully by deleting all namespaces under it. |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.
Done.
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
@codelipenghui Please help to take a look about this pr, thanks. |
@murong00 Then change looks good to me, shall we need to control the force delete tenants or namespaces in the broker.conf? such as forceDeleteNamepaceAllowed, forceDeleteTenantAllowed? This will help the Pulsar maintainer to maintain the cluster as expected. If this makes sense, we can create an issue or send a PR directly. I will merge this PR first. |
That sounds like a good idea, I will accomplish this when available. |
@murong00 Ok, I will create an issue first |
### Motivation Some users expect an option to force deleting tenant for simplicity, it can be useful in some situations. ### Modifications Add a optional field to force the deletion of all stuffs related to tenant and a related unit test.
Motivation
Some users expect an option to force deleting tenant for simplicity, it can be useful in some situations.
Modifications
Add a optional field to force the deletion of all stuffs related to tenant and a related unit test.