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/09/30 09:15:29 UTC
[GitHub] [pulsar] nodece commented on a diff in pull request #17864: [fix][broker] Fix create ns
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org