Skip to content

Commit

Permalink
in module managed-ledger, the testcase startup zookeeper server, af…
Browse files Browse the repository at this point in the history
…ter 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 (apache#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
  • Loading branch information
zplinuxlover authored Apr 14, 2020
1 parent 6d30414 commit cdc3883
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public BookKeeperClusterTestCase(int numBookies) {

@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);
Expand Down

0 comments on commit cdc3883

Please sign in to comment.