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/12/14 00:15:18 UTC

[50/50] [abbrv] hbase git commit: HBASE-21546 ConnectException in TestThriftHttpServer

HBASE-21546 ConnectException in TestThriftHttpServer

Signed-off-by: Sean Busbey <bu...@apache.org>


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

Branch: refs/heads/branch-1.3
Commit: e063aa8db09d8e8224a923d01aa027742f253aff
Parents: 82f187e
Author: Peter Somogyi <ps...@apache.org>
Authored: Tue Dec 4 14:57:50 2018 +0100
Committer: Andrew Purtell <ap...@apache.org>
Committed: Thu Dec 13 10:25:10 2018 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e063aa8d/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java
----------------------------------------------------------------------
diff --git a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java
index b21de38..8ed2259 100644
--- a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java
+++ b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftHttpServer.java
@@ -185,11 +185,7 @@ public class TestThriftHttpServer {
 
   private void waitThriftServerStartup() throws Exception{
     // wait up to 10s for the server to start
-    for (int i = 0; i < 100
-        && ( thriftServer.serverRunner == null ||  thriftServer.serverRunner.httpServer ==
-        null); i++) {
-      Thread.sleep(100);
-    }
+    HBaseTestingUtility.waitForHostPort(HConstants.LOCALHOST, port);
   }
 
   private void runThriftServer(int customHeaderSize) throws Exception {
@@ -252,7 +248,7 @@ public class TestThriftHttpServer {
   }
 
   private void stopHttpServerThread() throws Exception {
-    LOG.debug("Stopping " + " Thrift HTTP server");
+    LOG.debug("Stopping Thrift HTTP server");
     thriftServer.stop();
     httpServerThread.join();
     if (httpServerException != null) {