You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2018/09/21 22:53:03 UTC

[1/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Repository: hbase
Updated Branches:
  refs/heads/branch-1 bf62e30c1 -> bb529b706
  refs/heads/branch-1.2 d284eb383 -> 8273dfad5
  refs/heads/branch-1.3 3679b403d -> 508b1451d
  refs/heads/branch-1.4 e10fef4a1 -> 108473893
  refs/heads/branch-2 648d58bc2 -> 6dc9f9e6d
  refs/heads/branch-2.0 c2bbb6283 -> e8da96e9c
  refs/heads/branch-2.1 5a73a1ab2 -> 1e05c9f3b
  refs/heads/master ddd30a224 -> 1010992ee


HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1010992e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1010992e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1010992e

Branch: refs/heads/master
Commit: 1010992ee87f4cf9aec8fbdbcc4dcf1794846251
Parents: ddd30a2
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:36:54 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1010992e/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index b264563..730d0dd 100644
--- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -176,6 +176,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[4/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e8da96e9
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e8da96e9
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e8da96e9

Branch: refs/heads/branch-2.0
Commit: e8da96e9ce1beb723528b97f59175ffd96c49b06
Parents: c2bbb62
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:17 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e8da96e9/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index 010ec8c..4e83974 100644
--- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -176,6 +176,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[6/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/10847389
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/10847389
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/10847389

Branch: refs/heads/branch-1.4
Commit: 1084738934af5a51885e430f39301152b01c91d1
Parents: e10fef4
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:40 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/10847389/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index f6581f3..2e6ab1d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -180,6 +180,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[3/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1e05c9f3
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1e05c9f3
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1e05c9f3

Branch: refs/heads/branch-2.1
Commit: 1e05c9f3b53e654707be35537c10b50e62294c1e
Parents: 5a73a1a
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:12 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1e05c9f3/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index b264563..730d0dd 100644
--- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -176,6 +176,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[7/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/508b1451
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/508b1451
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/508b1451

Branch: refs/heads/branch-1.3
Commit: 508b1451d472947e7c59ad944ce2c69719f9ddbc
Parents: 3679b40
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:49 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/508b1451/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index 6cd5a28..bd0eadc 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -178,6 +178,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[5/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bb529b70
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bb529b70
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bb529b70

Branch: refs/heads/branch-1
Commit: bb529b706f01efe3f8400de78018ba826c2af76b
Parents: bf62e30
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:33 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/bb529b70/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index f6581f3..2e6ab1d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -180,6 +180,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[8/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8273dfad
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8273dfad
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8273dfad

Branch: refs/heads/branch-1.2
Commit: 8273dfad575be319457f0f55d60967c915807524
Parents: d284eb3
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:55 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8273dfad/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index 97102ab..cae4d0f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -175,6 +175,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {


[2/8] hbase git commit: HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Posted by ap...@apache.org.
HBASE-21203 TestZKMainServer#testCommandLineWorks won't pass with default 4lw whitelist

Recent versions of ZooKeeper whitelist the so-called 4-letter word admin
commands, and 'stat' is not in the default whitelist. Set system property
zookeeper.4lw.commands.whitelist=* in MiniZooKeeperCluster#setupTestEnv
as we do not need to whitelist 4-letter commands for unit tests.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6dc9f9e6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6dc9f9e6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6dc9f9e6

Branch: refs/heads/branch-2
Commit: 6dc9f9e6da7148724f485f22f8da8549cf297508
Parents: 648d58b
Author: Andrew Purtell <ap...@apache.org>
Authored: Mon Sep 17 14:49:31 2018 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Fri Sep 21 15:37:08 2018 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6dc9f9e6/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
----------------------------------------------------------------------
diff --git a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
index b264563..730d0dd 100644
--- a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
+++ b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/MiniZooKeeperCluster.java
@@ -176,6 +176,8 @@ public class MiniZooKeeperCluster {
     // set env and directly in order to handle static init/gc issues
     System.setProperty("zookeeper.preAllocSize", "100");
     FileTxnLog.setPreallocSize(100 * 1024);
+    // allow all 4 letter words
+    System.setProperty("zookeeper.4lw.commands.whitelist","*");
   }
 
   public int startup(File baseDir) throws IOException, InterruptedException {