Technoboy- commented on code in PR #17070:
URL: https://github.com/apache/pulsar/pull/17070#discussion_r944056263


##########
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:
   I think query `getListOfPersistentTopics` is enough, because 
`__change_events` is persistent.



-- 
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]

Reply via email to