hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r957712 - in /hbase/trunk: CHANGES.txt src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java
Date Thu, 24 Jun 2010 20:55:49 GMT
Author: jdcryans
Date: Thu Jun 24 20:55:48 2010
New Revision: 957712

URL: http://svn.apache.org/viewvc?rev=957712&view=rev
Log:
HBASE-2786  TestHLog.testSplit hangs (Nicolas Spiegelberg via JD)

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=957712&r1=957711&r2=957712&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Jun 24 20:55:48 2010
@@ -743,6 +743,7 @@ Release 0.21.0 - Unreleased
    HBASE-2783  Quick edit of 'Getting Started' for development release 0.89.x
    HBASE-2345  Add Test in 0.20 to Check for proper HDFS-200 append/sync support
                (Nicolas Spiegelberg via JD)
+   HBASE-2786  TestHLog.testSplit hangs (Nicolas Spiegelberg via JD)
 
   NEW FEATURES
    HBASE-1961  HBase EC2 scripts

Modified: hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java?rev=957712&r1=957711&r2=957712&view=diff
==============================================================================
--- hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java (original)
+++ hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLog.java Thu Jun
24 20:55:48 2010
@@ -38,9 +38,6 @@ import org.apache.hadoop.hbase.HConstant
 import org.apache.hadoop.hbase.HRegionInfo;
 import org.apache.hadoop.hbase.HTableDescriptor;
 import org.apache.hadoop.hbase.KeyValue;
-import org.apache.hadoop.hbase.regionserver.wal.HLog;
-import org.apache.hadoop.hbase.regionserver.wal.HLogKey;
-import org.apache.hadoop.hbase.regionserver.wal.WALEdit;
 import org.apache.hadoop.hbase.regionserver.wal.HLog.Reader;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.util.FSUtils;
@@ -141,13 +138,10 @@ public class TestHLog extends HBaseTestC
         }
         log.rollWriter();
       }
-      Configuration newConf = new Configuration(this.conf);
-      // We disable appends here because the last file is still being
-      // considered as under construction by the same DFSClient.
-      newConf.setBoolean("dfs.support.append", false);
+      log.close();
       Path splitsdir = new Path(this.dir, "splits");
       List<Path> splits =
-        HLog.splitLog(splitsdir, logdir, this.oldLogDir, this.fs, newConf);
+        HLog.splitLog(splitsdir, logdir, this.oldLogDir, this.fs, conf);
       verifySplits(splits, howmany);
       log = null;
     } finally {



Mime
View raw message