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/19 23:30:28 UTC

[GitHub] [pulsar] merlimat commented on a diff in pull request #17722: support setting bundle number for default namespace when set up cluster

merlimat commented on code in PR #17722:
URL: https://github.com/apache/pulsar/pull/17722#discussion_r974764210


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/zookeeper/ClusterMetadataSetupTest.java:
##########
@@ -86,6 +88,32 @@ public void testReSetupClusterMetadata() throws Exception {
         assertEquals(data1, data3);
     }
 
+    public void testSetBundleNumberForDefaultNamespace() throws Exception {
+
+        String[] args = {
+                "--cluster", "testReSetupClusterMetadata-cluster",
+                "--metadata-store", "zk:127.0.0.1:" + localZkS.getZookeeperPort() + "/metastore",
+                "--configuration-store", "127.0.0.1:" + localZkS.getZookeeperPort() + "/configurationStore",
+                "--web-service-url", "http://127.0.0.1:8080",
+                "--web-service-url-tls", "https://127.0.0.1:8443",
+                "--broker-service-url", "pulsar://127.0.0.1:6650",
+                "--broker-service-url-tls","pulsar+ssl://127.0.0.1:6651",
+                "--bundle-numbers", "64",

Review Comment:
   This could be confusing because if the namespace is already existing, it won't have any effect. Also it's not clear in the command line that this will be related to the `public/default` namespace.
   
   Another approach could be to remove the 16 bundles in the hardcoded from and instead just use the default number of bundles which is set in `broker.conf`



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