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

[test][admin]add test case: delete namespace when has partitioned system topic #17338

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Aug 29, 2022

Motivation

When a namespace containing partitioned topics is deleted, will throw the topic not found exception.

截屏2022-08-29 22 32 13

(High light) Should use API deletePartitionedTopicAsync to delete partitioned system topic.

Modifications

  • Use cmd-deletePartitionedTopicAsync to delete partitioned system topic.
  • Add tests: delete namespace.

Documentation

  • doc-required

  • doc-not-needed

  • doc

  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 29, 2022
@codelipenghui codelipenghui added this to the 2.12.0 milestone Aug 30, 2022
@poorbarcode poorbarcode changed the title [fix][broker]delete namespace fail when has partitioned system topic [fix][admin]delete namespace fail when has partitioned system topic Aug 30, 2022
@dlg99
Copy link
Contributor

dlg99 commented Aug 30, 2022

Related PRs, please take a look: #15141
and #17308

@dlg99
Copy link
Contributor

dlg99 commented Aug 30, 2022

I think CI failure is fixed by #17339
I'll rebase this PR and let Ci rerun

Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

Was it a problem if the topic autocreation disabled? (e.g. see #17308 )
If it was not, maybe namespace deletion (at least the forced one) should disable topic autocreation before attempting the deletion.

@poorbarcode
Copy link
Contributor Author

poorbarcode commented Aug 30, 2022

Hi @dlg99

Thanks.

Related PRs, please take a look: #15141 and #17308

let me add some description

#15141 try fix the issue "delete namespace when has non persistent topic".

#17308 try fix the race condition between auto create topic and delete partitioned topic

Was it a problem if the topic autocreation disabled? (e.g. see #17308 )
If it was not, maybe namespace deletion (at least the forced one) should disable topic autocreation before attempting the deletion.

Not. When Auto Create is disabled, everything is fine. #17308 try to fix datastax#112, that is a really difficult problem to solve, I left a comment at #17308

@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

2 similar comments
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@poorbarcode poorbarcode changed the title [test][admin]add test case: delete namespace [test][admin]add test case: delete namespace when has partitioned system topic Sep 15, 2022
@Technoboy- Technoboy- merged commit bfbe381 into apache:master Sep 16, 2022
codertmy pushed a commit to codertmy/pulsar that referenced this pull request Sep 16, 2022
@poorbarcode poorbarcode deleted the fix/deleteNamespace branch September 17, 2022 02:44
@Technoboy- Technoboy- modified the milestones: 2.12.0, 2.11.0 Oct 14, 2022
liangyepianzhou pushed a commit that referenced this pull request Dec 12, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 10, 2023
…tioned system topic (apache#17338)

(cherry picked from commit bfbe381)
(cherry picked from commit 1d89e0c)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jan 11, 2023
…tioned system topic (apache#17338)

(cherry picked from commit bfbe381)
(cherry picked from commit 1d89e0c)
coderzc pushed a commit that referenced this pull request Feb 28, 2023
@coderzc coderzc added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Feb 28, 2023
coderzc added a commit to coderzc/pulsar that referenced this pull request Feb 28, 2023
coderzc added a commit that referenced this pull request Feb 28, 2023
…as partitioned system topic (#17338)"

This reverts commit f1ec5ca.
@coderzc coderzc added release/2.9.6 and removed cherry-picked/branch-2.9 Archived: 2.9 is end of life release/2.9.5 labels Feb 28, 2023
Annavar-satish pushed a commit to pandio-com/pulsar that referenced this pull request Mar 6, 2023
Annavar-satish pushed a commit to pandio-com/pulsar that referenced this pull request Mar 6, 2023
@michaeljmarshall
Copy link
Member

As discussed on the mailing list https://lists.apache.org/thread/w4jzk27qhtosgsz7l9bmhf1t7o9mxjhp, there is no plan to release 2.9.6, so I am going to remove the release/2.9.6 label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test cherry-picked/branch-2.10 cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs release/2.10.3 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.