Skip to content

[pulsar-broker] Added support to force deleting tenant #8103

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

Closed
wants to merge 2 commits into from

Conversation

murong00
Copy link
Contributor

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.

@BewareMyPower
Copy link
Contributor

I've fixed the testIndividualAck cpp unit test failure in #8141 , please rebase and commit again, thx!

// Check deleting non-existing property
try {
properties.deleteTenant("non-existing");
properties.deleteTenant(response, "non-existing", false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the test related to this change? I think the test should cover there are namespaces and topics under a tenant, then we delete the tenant forcefully should success.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change adds a force option so the test need pass this option. I can add a test to cover the above situations later.

@codelipenghui
Copy link
Contributor

move to 2.8.0 first

@codelipenghui codelipenghui modified the milestones: 2.7.0, 2.8.0 Nov 17, 2020
@murong00
Copy link
Contributor Author

move to 2.8.0 first

@codelipenghui I can add a test to cover your comments and we expect this feature as soon as possilbe. Can this be introduced in coming 2.7.0?

@murong00
Copy link
Contributor Author

@codelipenghui @jiazhai I have added a test, please help to take a review when available, thanks.

@murong00
Copy link
Contributor Author

/pulsarbot run-failure-checks

@murong00
Copy link
Contributor Author

Close this and submit a new pull request using metadata-api.

@murong00 murong00 closed this Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants