hbase git commit: Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

2017-11-03 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/branch-1 654712878 -> 9ad6e0422


Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

This reverts commit 65471287894e970d2cbf9d19959f4f8f52a49549.


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

Branch: refs/heads/branch-1
Commit: 9ad6e0422fe4462f3b9450bd65bb108b636f1a37
Parents: 6547128
Author: Michael Stack 
Authored: Fri Nov 3 12:16:32 2017 -0700
Committer: Michael Stack 
Committed: Fri Nov 3 12:16:32 2017 -0700

--
 .../hadoop/hbase/zookeeper/ZooKeeperMainServer.java| 13 -
 1 file changed, 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/9ad6e042/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
index 5415fd6..e81da59 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
@@ -20,9 +20,7 @@
 package org.apache.hadoop.hbase.zookeeper;
 
 import java.io.IOException;
-import java.util.concurrent.TimeUnit;
 
-import org.apache.curator.shaded.com.google.common.base.Stopwatch;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseInterfaceAudience;
@@ -50,15 +48,6 @@ public class ZooKeeperMainServer {
 public HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(String[] args)
 throws IOException, InterruptedException {
   super(args);
-  // Make sure we are connected before we proceed. Can take a while on 
some systems. If we
-  // run the command without being connected, we get ConnectionLoss 
KeeperErrorConnection...
-  Stopwatch stopWatch = Stopwatch.createStarted();
-  while (!this.zk.getState().isConnected()) {
-Thread.sleep(1);
-if (stopWatch.elapsed(TimeUnit.SECONDS) > 10) {
-  throw new InterruptedException("Failed connect " + this.zk);
-}
-  }
 }
 
 /**
@@ -111,8 +100,6 @@ public class ZooKeeperMainServer {
   }
 }
 // If command-line arguments, run our hack so they are executed.
-// ZOOKEEPER-1897 was committed to zookeeper-3.4.6 but elsewhere in this 
class we say
-// 3.4.6 breaks command-processing; TODO.
 if (hasCommandLineArguments(args)) {
   HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain zkm =
 new HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(newArgs);



hbase git commit: Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

2017-11-03 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 9f7df19df -> f6be6e0d7


Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

This reverts commit 9f7df19dfaff4df275d45e0ba9d0ffcd45612483.


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

Branch: refs/heads/branch-1.4
Commit: f6be6e0d7b6eb552ba4ee8da61b6cdc4f9d7bb8a
Parents: 9f7df19
Author: Michael Stack 
Authored: Fri Nov 3 12:16:08 2017 -0700
Committer: Michael Stack 
Committed: Fri Nov 3 12:16:08 2017 -0700

--
 .../hadoop/hbase/zookeeper/ZooKeeperMainServer.java| 13 -
 1 file changed, 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/f6be6e0d/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
index 5415fd6..e81da59 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
@@ -20,9 +20,7 @@
 package org.apache.hadoop.hbase.zookeeper;
 
 import java.io.IOException;
-import java.util.concurrent.TimeUnit;
 
-import org.apache.curator.shaded.com.google.common.base.Stopwatch;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseInterfaceAudience;
@@ -50,15 +48,6 @@ public class ZooKeeperMainServer {
 public HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(String[] args)
 throws IOException, InterruptedException {
   super(args);
-  // Make sure we are connected before we proceed. Can take a while on 
some systems. If we
-  // run the command without being connected, we get ConnectionLoss 
KeeperErrorConnection...
-  Stopwatch stopWatch = Stopwatch.createStarted();
-  while (!this.zk.getState().isConnected()) {
-Thread.sleep(1);
-if (stopWatch.elapsed(TimeUnit.SECONDS) > 10) {
-  throw new InterruptedException("Failed connect " + this.zk);
-}
-  }
 }
 
 /**
@@ -111,8 +100,6 @@ public class ZooKeeperMainServer {
   }
 }
 // If command-line arguments, run our hack so they are executed.
-// ZOOKEEPER-1897 was committed to zookeeper-3.4.6 but elsewhere in this 
class we say
-// 3.4.6 breaks command-processing; TODO.
 if (hasCommandLineArguments(args)) {
   HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain zkm =
 new HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(newArgs);



hbase git commit: Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

2017-11-03 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 b89a40c99 -> cdeb37714


Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

This reverts commit b89a40c990580402f70e427eec37194166885fab.


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

Branch: refs/heads/branch-1.2
Commit: cdeb377148cd5adc9b746022fcfe7c75d4d58635
Parents: b89a40c
Author: Michael Stack 
Authored: Fri Nov 3 12:15:14 2017 -0700
Committer: Michael Stack 
Committed: Fri Nov 3 12:15:14 2017 -0700

--
 .../hadoop/hbase/zookeeper/ZooKeeperMainServer.java| 13 -
 1 file changed, 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/cdeb3771/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
index 5415fd6..e81da59 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
@@ -20,9 +20,7 @@
 package org.apache.hadoop.hbase.zookeeper;
 
 import java.io.IOException;
-import java.util.concurrent.TimeUnit;
 
-import org.apache.curator.shaded.com.google.common.base.Stopwatch;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseInterfaceAudience;
@@ -50,15 +48,6 @@ public class ZooKeeperMainServer {
 public HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(String[] args)
 throws IOException, InterruptedException {
   super(args);
-  // Make sure we are connected before we proceed. Can take a while on 
some systems. If we
-  // run the command without being connected, we get ConnectionLoss 
KeeperErrorConnection...
-  Stopwatch stopWatch = Stopwatch.createStarted();
-  while (!this.zk.getState().isConnected()) {
-Thread.sleep(1);
-if (stopWatch.elapsed(TimeUnit.SECONDS) > 10) {
-  throw new InterruptedException("Failed connect " + this.zk);
-}
-  }
 }
 
 /**
@@ -111,8 +100,6 @@ public class ZooKeeperMainServer {
   }
 }
 // If command-line arguments, run our hack so they are executed.
-// ZOOKEEPER-1897 was committed to zookeeper-3.4.6 but elsewhere in this 
class we say
-// 3.4.6 breaks command-processing; TODO.
 if (hasCommandLineArguments(args)) {
   HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain zkm =
 new HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(newArgs);



hbase git commit: Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

2017-11-03 Thread stack
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 1937a93c1 -> 371e6093f


Revert "HBASE-19102 TestZooKeeperMainServer fails with KeeperException"

This reverts commit 1937a93c1be5e4dccb0fb193bd7386c9100595db.


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

Branch: refs/heads/branch-1.3
Commit: 371e6093f169085fe5cbaf9b7477ba86b9c44f4e
Parents: 1937a93
Author: Michael Stack 
Authored: Fri Nov 3 12:15:42 2017 -0700
Committer: Michael Stack 
Committed: Fri Nov 3 12:15:42 2017 -0700

--
 .../hadoop/hbase/zookeeper/ZooKeeperMainServer.java| 13 -
 1 file changed, 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hbase/blob/371e6093/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
--
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
index 5415fd6..e81da59 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperMainServer.java
@@ -20,9 +20,7 @@
 package org.apache.hadoop.hbase.zookeeper;
 
 import java.io.IOException;
-import java.util.concurrent.TimeUnit;
 
-import org.apache.curator.shaded.com.google.common.base.Stopwatch;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseInterfaceAudience;
@@ -50,15 +48,6 @@ public class ZooKeeperMainServer {
 public HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(String[] args)
 throws IOException, InterruptedException {
   super(args);
-  // Make sure we are connected before we proceed. Can take a while on 
some systems. If we
-  // run the command without being connected, we get ConnectionLoss 
KeeperErrorConnection...
-  Stopwatch stopWatch = Stopwatch.createStarted();
-  while (!this.zk.getState().isConnected()) {
-Thread.sleep(1);
-if (stopWatch.elapsed(TimeUnit.SECONDS) > 10) {
-  throw new InterruptedException("Failed connect " + this.zk);
-}
-  }
 }
 
 /**
@@ -111,8 +100,6 @@ public class ZooKeeperMainServer {
   }
 }
 // If command-line arguments, run our hack so they are executed.
-// ZOOKEEPER-1897 was committed to zookeeper-3.4.6 but elsewhere in this 
class we say
-// 3.4.6 breaks command-processing; TODO.
 if (hasCommandLineArguments(args)) {
   HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain zkm =
 new HACK_UNTIL_ZOOKEEPER_1897_ZooKeeperMain(newArgs);