From fabf76eaee389084251f28e87f36010147f6eff2 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 13 Jul 2012 13:26:04 +0000 Subject: [PATCH] HBASE-6380 bulkload should update the store.storeSize git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1361203 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/hadoop/hbase/regionserver/Store.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java index 28e1cc80fb5..71acded0920 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java @@ -583,7 +583,9 @@ public class Store extends SchemaConfigured implements HeapSize { this.family.getBloomFilterType(), this.dataBlockEncoder); passSchemaMetricsTo(sf); - sf.createReader(); + StoreFile.Reader r = sf.createReader(); + this.storeSize += r.length(); + this.totalUncompressedBytes += r.getTotalUncompressedBytes(); LOG.info("Moved HFile " + srcPath + " into store directory " + homedir + " - updating store file list.");