You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2014/04/16 20:28:59 UTC
svn commit: r1588019 -
/hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java
Author: larsh
Date: Wed Apr 16 18:28:58 2014
New Revision: 1588019
URL: http://svn.apache.org/r1588019
Log:
HBASE-10988 Addendum, break long line.
Modified:
hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java
Modified: hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java?rev=1588019&r1=1588018&r2=1588019&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java (original)
+++ hbase/branches/0.98/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestThriftServerCmdLine.java Wed Apr 16 18:28:58 2014
@@ -173,8 +173,10 @@ public class TestThriftServerCmdLine {
thriftServer = new ThriftServer(TEST_UTIL.getConfiguration());
startCmdLineThread(args.toArray(new String[0]));
- while ( thriftServer.serverRunner == null || thriftServer.serverRunner.tserver == null ){
- Thread.sleep(1);
+ // wait up to 10s for the server to start
+ for (int i = 0; i < 100
+ && (thriftServer.serverRunner == null || thriftServer.serverRunner.tserver == null); i++) {
+ Thread.sleep(100);
}
Class<? extends TServer> expectedClass = implType != null ?