From 27ba048651eb930175f9b157ee9019e0f08a86aa Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Thu, 28 Aug 2014 15:53:19 -0700 Subject: [PATCH] HBASE-11846 HStore#assertBulkLoadHFileOk should log if a full HFile verification will be performed during a bulkload (Esteban Gutierrez) --- .../java/org/apache/hadoop/hbase/regionserver/HStore.java | 5 +++++ 1 file changed, 5 insertions(+) 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 dc593ac0637..a74a463fdef 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 @@ -707,6 +707,8 @@ public class HStore implements Store { } if (verifyBulkLoads) { + long verificationStartTime = EnvironmentEdgeManager.currentTimeMillis(); + LOG.info("Full verification started for bulk load hfile: " + srcPath.toString()); Cell prevKV = null; HFileScanner scanner = reader.getScanner(false, false, false); scanner.seekTo(); @@ -732,6 +734,9 @@ public class HStore implements Store { } prevKV = kv; } while (scanner.next()); + LOG.info("Full verification complete for bulk load hfile: " + srcPath.toString() + + " took " + (EnvironmentEdgeManager.currentTimeMillis() - verificationStartTime) + + " ms"); } } finally { if (reader != null) reader.close();