hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject svn commit: r1515685 - /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java
Date Tue, 20 Aug 2013 01:54:29 GMT
Author: jmhsieh
Date: Tue Aug 20 01:54:29 2013
New Revision: 1515685

URL: http://svn.apache.org/r1515685
Log:
HBASE-9195 Fix TestFSHDFSUtils against java7 test re-ordering (Himanshu Vashishtha)

Modified:
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java?rev=1515685&r1=1515684&r2=1515685&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestFSHDFSUtils.java
Tue Aug 20 01:54:29 2013
@@ -39,7 +39,6 @@ public class TestFSHDFSUtils {
   private static final HBaseTestingUtility HTU = new HBaseTestingUtility();
   static {
     Configuration conf = HTU.getConfiguration();
-    conf.setInt("hbase.lease.recovery.dfs.timeout", 1000);
     conf.setInt("hbase.lease.recovery.first.pause", 10);
     conf.setInt("hbase.lease.recovery.pause", 10);
   };
@@ -58,6 +57,7 @@ public class TestFSHDFSUtils {
    */
   @Test (timeout = 30000)
   public void testRecoverLease() throws IOException {
+    HTU.getConfiguration().setInt("hbase.lease.recovery.dfs.timeout", 1000);
     CancelableProgressable reporter = Mockito.mock(CancelableProgressable.class);
     Mockito.when(reporter.progress()).thenReturn(true);
     DistributedFileSystem dfs = Mockito.mock(DistributedFileSystem.class);



Mime
View raw message