You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2013/05/18 00:47:58 UTC
svn commit: r1484021 - in /hbase/branches/0.95:
hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java
Author: tedyu
Date: Fri May 17 22:47:58 2013
New Revision: 1484021
URL: http://svn.apache.org/r1484021
Log:
HBASE-7006 [MTTR] Improve Region Server Recovery Time - Distributed Log Replay, Addendum disables the feature by default
Modified:
hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java
Modified: hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java?rev=1484021&r1=1484020&r2=1484021&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java Fri May 17 22:47:58 2013
@@ -719,7 +719,7 @@ public final class HConstants {
/** Conf key that enables unflushed WAL edits directly being replayed to region servers */
public static final String DISTRIBUTED_LOG_REPLAY_KEY = "hbase.master.distributed.log.replay";
- public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = true;
+ public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = false;
/** Conf key that specifies timeout value to wait for a region ready */
public static final String LOG_REPLAY_WAIT_REGION_TIMEOUT =
Modified: hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java?rev=1484021&r1=1484020&r2=1484021&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java (original)
+++ hbase/branches/0.95/hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterFileSystem.java Fri May 17 22:47:58 2013
@@ -30,6 +30,7 @@ import org.apache.hadoop.conf.Configurat
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HBaseTestingUtility;
+import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.MediumTests;
import org.apache.hadoop.hbase.MiniHBaseCluster;
import org.apache.hadoop.hbase.ServerName;
@@ -79,6 +80,9 @@ public class TestMasterFileSystem {
@Test
public void testRemoveStaleRecoveringRegionsDuringMasterInitialization() throws Exception {
+ // this test is for when distributed log replay is enabled
+ if (!UTIL.getConfiguration().getBoolean(HConstants.DISTRIBUTED_LOG_REPLAY_KEY, false)) return;
+
LOG.info("Starting testRemoveStaleRecoveringRegionsDuringMasterInitialization");
HMaster master = UTIL.getMiniHBaseCluster().getMaster();
MasterFileSystem fs = master.getMasterFileSystem();