You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2020/04/14 04:08:41 UTC

[pulsar] branch master updated: in module `managed-ledger`, the testcase startup zookeeper server, after startup zookeeper server, we will use `ClientBase.waitForServerUp(getZooKeeperConnectString(), ClientBase.CONNECTION_TIMEOUT)` to wait for zookeeper server startup success, but if zookeeper do not enable `zookeeper.4lw.commands.whitelist`, the client can not use (#6727)

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new cdc3883  in module `managed-ledger`,  the testcase startup zookeeper server, after startup zookeeper server, we will use `ClientBase.waitForServerUp(getZooKeeperConnectString(), ClientBase.CONNECTION_TIMEOUT)` to wait for zookeeper server startup success, but if zookeeper do not enable `zookeeper.4lw.commands.whitelist`, the client can not use (#6727)
cdc3883 is described below

commit cdc3883644f4b2ef0d33cca258f918aebc6aa1ab
Author: luceneReader <54...@qq.com>
AuthorDate: Tue Apr 14 12:08:28 2020 +0800

    in module `managed-ledger`,  the testcase startup zookeeper server, after startup zookeeper server, we will use `ClientBase.waitForServerUp(getZooKeeperConnectString(), ClientBase.CONNECTION_TIMEOUT)` to wait for zookeeper server startup success, but if zookeeper do not enable `zookeeper.4lw.commands.whitelist`, the client can not use (#6727)
    
       In module `managed-ledger`,  the testcase startup zookeeper server, after startup zookeeper server, we will use `ClientBase.waitForServerUp(getZooKeeperConnectString(), ClientBase.CONNECTION_TIMEOUT)` to wait for zookeeper server startup success, but if zookeeper do not enable `zookeeper.4lw.commands.whitelist`, the client can not use
    `echo stat  |  nc zookeeper_ip  zk_port` to detect zookeeper server startup success or not
---
 .../test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java b/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java
index 3f2980a..96aaff8 100644
--- a/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java
+++ b/managed-ledger/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java
@@ -93,6 +93,8 @@ public abstract class BookKeeperClusterTestCase {
 
     @BeforeMethod
     public void setUp() throws Exception {
+        // enable zookeeper `zookeeper.4lw.commands.whitelist`
+        System.setProperty("zookeeper.4lw.commands.whitelist", "*");
         executor = Executors.newCachedThreadPool();
         InMemoryMetaStore.reset();
         setMetastoreImplClass(baseConf);