eolivelli commented on a change in pull request #11640:
URL: https://github.com/apache/pulsar/pull/11640#discussion_r689390887
##########
File path:
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest2.java
##########
@@ -1472,6 +1474,60 @@ public void testForceDeleteNamespace() throws Exception {
}
}
+ @Test
+ public void testDistinguishTopicTypeWhenForceDeleteNamespace() throws
Exception {
+ conf.setForceDeleteNamespaceAllowed(true);
+ final String ns = "prop-xyz/distinguish-topic-type-ns";
+ final String exNs = "prop-xyz/ex-distinguish-topic-type-ns";
+ admin.namespaces().createNamespace(ns, 2);
+ admin.namespaces().createNamespace(exNs, 2);
+
+ final String p1 = "persistent://" + ns + "/p1";
+ final String p5 = "persistent://" + ns + "/p5";
+ final String np = "persistent://" + ns + "/np";
+
+ admin.topics().createPartitionedTopic(p1, 1);
+ admin.topics().createPartitionedTopic(p5, 5);
+ admin.topics().createNonPartitionedTopic(np);
+
+ final String exNp = "persistent://" + exNs + "/np";
+ admin.topics().createNonPartitionedTopic(exNp);
+ // insert an invalid topic name
+ pulsar.getLocalMetadataStore().put(
Review comment:
why this is related to this patch ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]