You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/08/12 01:52:35 UTC

[GitHub] [pulsar] codelipenghui commented on a diff in pull request #17070: [fix][flaky-test]AdminApi2Test.testDeleteTenant

codelipenghui commented on code in PR #17070:
URL: https://github.com/apache/pulsar/pull/17070#discussion_r944058511


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java:
##########
@@ -1386,6 +1397,18 @@ public void testDeleteTenant() throws Exception {
         assertFalse(pulsar.getLocalMetadataStore().exists(bundleDataPath).join());
     }
 
+    private TreeSet<String> queryTopicsByNamespace(String namespace){
+        NamespaceName namespaceName = NamespaceName.get(namespace);
+        TreeSet<String> topics = new TreeSet<>();
+        topics.addAll(pulsar.getNamespaceService()
+                .getListOfPersistentTopics(NamespaceName.get(namespace)).join());
+        topics.addAll(pulsar.getPulsarResources().getNamespaceResources().getPartitionedTopicResources()

Review Comment:
   And we don't need to check partitioned topics? Because we will eventually create the partitons.



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org