hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-15263 TestIPv6NIOServerSocketChannel.testServerSocketFromLocalhostResolution can hang indefinetly
Date Tue, 16 Feb 2016 20:54:41 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 29ce46a67 -> 6ed63180e


HBASE-15263 TestIPv6NIOServerSocketChannel.testServerSocketFromLocalhostResolution can hang
indefinetly

Signed-off-by: stack <stack@apache.org>


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

Branch: refs/heads/branch-1
Commit: 6ed63180e149247fc569ad60f348035c38b99dcc
Parents: 29ce46a
Author: chenheng <chenheng@apache.org>
Authored: Tue Feb 16 15:29:40 2016 +0800
Committer: stack <stack@apache.org>
Committed: Tue Feb 16 12:54:34 2016 -0800

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6ed63180/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
index 0baf5de3..c9ab40d 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/TestIPv6NIOServerSocketChannel.java
@@ -29,8 +29,10 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.hbase.testclassification.SmallTests;
 import org.junit.Assert;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
+import org.junit.rules.TestRule;
 
 /**
  * This tests whether ServerSocketChannel works over ipv6, which Zookeeper
@@ -48,6 +50,9 @@ public class TestIPv6NIOServerSocketChannel {
 
   private static final Log LOG = LogFactory.getLog(TestIPv6NIOServerSocketChannel.class);
 
+  @Rule
+  public final TestRule timeout = CategoryBasedTimeout.builder().
+    withTimeout(this.getClass()).withLookingForStuckThread(true).build();
   /**
    * Creates and binds a regular ServerSocket.
    */


Mime
View raw message