From b4e3798bb9133ce1f13de3ac0dec40ca3aaac31a Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 28 Dec 2017 14:59:40 -0800 Subject: [PATCH] HBASE-19660 Up default retries from 10 to 15 and blocking store files limit from 10 to 16 --- .../src/main/java/org/apache/hadoop/hbase/HConstants.java | 2 +- hbase-common/src/main/resources/hbase-default.xml | 4 ++-- .../java/org/apache/hadoop/hbase/regionserver/HStore.java | 2 +- 3 files changed, 4 insertions(+), 4 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 3fa93cd8ea4..188d9b37b73 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 @@ -790,7 +790,7 @@ public final class HConstants { /** * Default value of {@link #HBASE_CLIENT_RETRIES_NUMBER}. */ - public static final int DEFAULT_HBASE_CLIENT_RETRIES_NUMBER = 10; + public static final int DEFAULT_HBASE_CLIENT_RETRIES_NUMBER = 15; public static final String HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER = "hbase.client.serverside.retries.multiplier"; diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index df46fb44471..134d4ea4dfa 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -506,7 +506,7 @@ possible configurations would overwhelm and obscure the important. hbase.client.retries.number - 10 + 15 Maximum retries. Used as maximum for all retryable operations such as the getting of a cell's value, starting a row update, etc. Retry interval is a rough function based on hbase.client.pause. At @@ -737,7 +737,7 @@ possible configurations would overwhelm and obscure the important. hbase.hstore.blockingStoreFiles - 10 + 16 If more than this number of StoreFiles exist in any one Store (one StoreFile is written per flush of MemStore), updates are blocked for this region until a compaction is completed, or until hbase.hstore.blockingWaitTime has been exceeded. diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java index 5e6db76a3f9..269ecbde922 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java @@ -132,7 +132,7 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, Propagat // keep in accordance with HDFS default storage policy public static final String DEFAULT_BLOCK_STORAGE_POLICY = "HOT"; public static final int DEFAULT_COMPACTCHECKER_INTERVAL_MULTIPLIER = 1000; - public static final int DEFAULT_BLOCKING_STOREFILE_COUNT = 10; + public static final int DEFAULT_BLOCKING_STOREFILE_COUNT = 16; private static final Logger LOG = LoggerFactory.getLogger(HStore.class);