From 501fd2b6c59de53bff79effa002947da0ce75383 Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Tue, 28 Apr 2015 14:03:06 -0700 Subject: [PATCH] HBASE-13584 Disable distributed log replay by default for 1.1 --- .../src/main/java/org/apache/hadoop/hbase/HConstants.java | 4 +--- hbase-common/src/main/resources/hbase-default.xml | 11 +++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index 2ec2eff..7438171 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -869,10 +869,8 @@ 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"; - /** - * Default 'distributed log replay' as true since hbase 1.1 (HBASE-12577) - */ public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = false; + public static final String DISALLOW_WRITES_IN_RECOVERING = "hbase.regionserver.disallow.writes.when.recovering"; public static final boolean DEFAULT_DISALLOW_WRITES_IN_RECOVERING_CONFIG = false; diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index 86a5104..1ea0ca7 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -271,13 +271,12 @@ possible configurations would overwhelm and obscure the important. hbase.master.distributed.log.replay - true + false Enable 'distributed log replay' as default engine splitting - WAL files on server crash. This default is new in hbase 1.0. To fall - back to the old mode 'distributed log splitter', set the value to - 'false'. 'Disributed log replay' improves MTTR because it does not - write intermediate files. 'DLR' required that 'hfile.format.version' - be set to version 3 or higher. + WAL files on server crash. Turn this to true to try out this experimental + feature, replacing the old mode 'distributed log splitter'. 'Disributed + log replay' improves MTTR because it does not write intermediate files. + 'DLR' required that 'hfile.format.version' be set to version 3 or higher. -- 1.9.5 (Apple Git-50.3)