Skip to content
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 delete namespace issue. #14215

Conversation

Technoboy-
Copy link
Contributor

Motivation

When we delete namespace with force=false, sometimes there may occur Cannot delete non empty bundle.
Because delete system topic and delete namespace bundles are put into futures, can't keep their order.
We should delete system topic first and then delete namespace bundles.

Modifications

  • Use admin cli to delete system topic.
  • Delete system topic first and then delete namespace bundles
  • Make internalClearZkSources async and the code more readable.

Documentation

  • no-need-doc

@Technoboy- Technoboy- self-assigned this Feb 10, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 10, 2022
gaoran10
gaoran10 previously approved these changes Feb 10, 2022
Copy link
Contributor

@gaoran10 gaoran10 left a comment

Choose a reason for hiding this comment

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

LGTM

shoothzj
shoothzj previously approved these changes Feb 10, 2022
@mattisonchao
Copy link
Member

@shibd Could you please help review this PR?

@congbobo184 congbobo184 dismissed stale reviews from shoothzj and gaoran10 via fb8eda9 February 16, 2022 02:58
@hangc0276
Copy link
Contributor

Ping @eolivelli , Please help review this Pr, Thanks.

@Technoboy-
Copy link
Contributor Author

Hi, @eolivelli Could you help review again, thanks .

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Lgtm

@codelipenghui codelipenghui merged commit 145f29a into apache:master Feb 27, 2022
codelipenghui pushed a commit that referenced this pull request Mar 1, 2022
### Motivation

When we delete namespace with `force=false`, sometimes there may occur `Cannot delete non empty bundle`.
Because delete system topic and delete namespace bundles are put into futures, can't keep their order.
We should delete `system topic` first and then delete `namespace bundles`.

### Modifications
- Use admin cli to delete system topic.
- Delete system topic first and then delete namespace bundles
- Make internalClearZkSources async and the code more readable.

(cherry picked from commit 145f29a)
@codelipenghui codelipenghui modified the milestones: 2.11.0, 2.10.0 Mar 1, 2022
@lhotari
Copy link
Member

lhotari commented Mar 1, 2022

There's a new flaky test #14516 . @Technoboy- could you please check if it's caused by this PR #14215?

@Technoboy-
Copy link
Contributor Author

There's a new flaky test #14516 . @Technoboy- could you please check if it's caused by this PR #14215?

Ok

@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Mar 9, 2022
codelipenghui pushed a commit that referenced this pull request Mar 11, 2022
Cherry-pick #14215

### Motivation

When we delete namespace with `force=false`, sometimes there may occur `Cannot delete non empty bundle`.
Because delete system topic and delete namespace bundles are put into futures, can't keep their order.
We should delete `system topic` first and then delete `namespace bundles`.

### Modifications
- Use admin cli to delete system topic.
- Delete system topic first and then delete namespace bundles
- Make internalClearZkSources async and the code more readable.
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Mar 11, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Apr 20, 2022
### Motivation

When we delete namespace with `force=false`, sometimes there may occur `Cannot delete non empty bundle`.
Because delete system topic and delete namespace bundles are put into futures, can't keep their order.
We should delete `system topic` first and then delete `namespace bundles`.

### Modifications
- Use admin cli to delete system topic.
- Delete system topic first and then delete namespace bundles
- Make internalClearZkSources async and the code more readable.
@Technoboy- Technoboy- deleted the fix-delete-namespace-system-topic-bundle-issue branch August 10, 2022 05:53
@BewareMyPower BewareMyPower removed cherry-picked/branch-2.8 Archived: 2.8 is end of life release/2.8.4 labels Sep 14, 2022
@github-actions github-actions bot added doc-label-missing and removed doc-not-needed Your PR changes do not impact docs labels Sep 14, 2022
@github-actions
Copy link

@Technoboy- Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

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.