hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r957795 - in /hbase/branches/0.20: CHANGES.txt src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java
Date Fri, 25 Jun 2010 04:39:44 GMT
Author: apurtell
Date: Fri Jun 25 04:39:43 2010
New Revision: 957795

URL: http://svn.apache.org/viewvc?rev=957795&view=rev
Log:
HBASE-2786 TestHLog.testSplit hangs

Modified:
    hbase/branches/0.20/CHANGES.txt
    hbase/branches/0.20/src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java

Modified: hbase/branches/0.20/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.20/CHANGES.txt?rev=957795&r1=957794&r2=957795&view=diff
==============================================================================
--- hbase/branches/0.20/CHANGES.txt (original)
+++ hbase/branches/0.20/CHANGES.txt Fri Jun 25 04:39:43 2010
@@ -3,6 +3,7 @@ Release 0.20.6 - Unreleased
   BUG FiXES
    HBASE-2763  Cross-port HADOOP-6833 IPC parameter leak bug
    HBASE-2772  Scan doesn't recover from region server failure
+   HBASE-2786  TestHLog.testSplit hangs
 
 Release 0.20.5 - Unreleased
 

Modified: hbase/branches/0.20/src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.20/src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java?rev=957795&r1=957794&r2=957795&view=diff
==============================================================================
--- hbase/branches/0.20/src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java (original)
+++ hbase/branches/0.20/src/test/org/apache/hadoop/hbase/regionserver/TestHLog.java Fri Jun
25 04:39:43 2010
@@ -26,6 +26,7 @@ import java.util.List;
 import java.util.Map;
 
 import org.apache.hadoop.fs.Path;
+import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestCase;
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.KeyValue;
@@ -113,8 +114,12 @@ public class TestHLog extends HBaseTestC
         }
         log.rollWriter();
       }
+      // We disable appends here because the last file is still being
+      // considered as under construction by the same DFSClient.
+      HBaseConfiguration newConf = new HBaseConfiguration(this.conf);
+      newConf.setBoolean("dfs.support.append", false);
       List<Path> splits =
-        HLog.splitLog(this.testDir, this.dir, this.fs, this.conf);
+        HLog.splitLog(this.testDir, this.dir, this.fs, newConf);
       verifySplits(splits, howmany);
       log = null;
     } finally {



Mime
View raw message