-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][broker] Fix namespace deletion if __change_events topic has not been created yet #18804
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
Changes from all commits
56b34d6
68a7d23
c37169e
7facf37
db8cfaf
ac72e17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1648,6 +1648,11 @@ public void testDeleteNamespaceWithTopicPolicies() throws Exception { | |
|
|
||
| // create namespace2 | ||
| String namespace = tenant + "/test-ns2"; | ||
| admin.namespaces().createNamespace(namespace, Set.of("test")); | ||
| admin.topics().createNonPartitionedTopic(namespace + "/tobedeleted"); | ||
| // verify namespace can be deleted even without topic policy events | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure why the namespace couldn't be deleted when there is no topic policy events.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's the scope of this pull 😁
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw I've added a more specific unit test case |
||
| admin.namespaces().deleteNamespace(namespace, true); | ||
|
|
||
| admin.namespaces().createNamespace(namespace, Set.of("test")); | ||
| // create topic | ||
| String topic = namespace + "/test-topic2"; | ||
|
|
@@ -1872,7 +1877,6 @@ public void testListOfNamespaceBundles() throws Exception { | |
|
|
||
| @Test | ||
| public void testForceDeleteNamespace() throws Exception { | ||
| conf.setForceDeleteNamespaceAllowed(true); | ||
| final String namespaceName = "prop-xyz2/ns1"; | ||
| TenantInfoImpl tenantInfo = new TenantInfoImpl(Set.of("role1", "role2"), Set.of("test")); | ||
| admin.tenants().createTenant("prop-xyz2", tenantInfo); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.