nodece commented on code in PR #17864:
URL: https://github.com/apache/pulsar/pull/17864#discussion_r984389298


##########
pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java:
##########
@@ -394,9 +392,7 @@ void createNameSpace(String cluster, String publicTenant, 
NamespaceName ns) thro
         }
 
         if (!nsr.namespaceExists(ns)) {
-            Policies nsp = new Policies();
-            nsp.replication_clusters = 
Collections.singleton(config.getClusterName());
-            nsr.createPolicies(ns, nsp);
+            
broker.getAdminClient().namespaces().createNamespace(ns.toString());

Review Comment:
   Some policy is ignored because the conf file effects this policy.



-- 
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-unsubscr...@pulsar.apache.org

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

Reply via email to