From 4629b58bd780c878f2d48b2b4a4e9fd215d0ab1c Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Mon, 20 Apr 2009 16:04:36 +0000 Subject: [PATCH] HBASE-1331 Lower the default scanner caching value git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@766738 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + conf/hbase-default.xml | 2 +- src/java/org/apache/hadoop/hbase/client/HTable.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index d5c5fa66483..d3422442728 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -143,6 +143,7 @@ Release 0.20.0 - Unreleased HBASE-1205 RegionServers should find new master when a new master comes up (Nitay Joffe via Andrew Purtell) HBASE-1309 HFile rejects key in Memcache with empty value + HBASE-1331 Lower the default scanner caching value Release 0.19.0 - 01/21/2009 INCOMPATIBLE CHANGES diff --git a/conf/hbase-default.xml b/conf/hbase-default.xml index b59b67e219a..cff2afa7a1a 100644 --- a/conf/hbase-default.xml +++ b/conf/hbase-default.xml @@ -137,7 +137,7 @@ hbase.client.scanner.caching - 30 + 1 Number of rows that will be fetched when calling next on a scanner if it is not served from memory. Higher caching values will enable faster scanners but will eat up more memory and some diff --git a/src/java/org/apache/hadoop/hbase/client/HTable.java b/src/java/org/apache/hadoop/hbase/client/HTable.java index 9ddc0df57e9..7d52dab3f22 100644 --- a/src/java/org/apache/hadoop/hbase/client/HTable.java +++ b/src/java/org/apache/hadoop/hbase/client/HTable.java @@ -117,7 +117,7 @@ public class HTable { this.configuration.getLong("hbase.client.write.buffer", 2097152); this.autoFlush = true; this.currentWriteBufferSize = 0; - this.scannerCaching = conf.getInt("hbase.client.scanner.caching", 30); + this.scannerCaching = conf.getInt("hbase.client.scanner.caching", 1); } /**