HBASE-11846 HStore#assertBulkLoadHFileOk should log if a full HFile verification will be performed during a bulkload (Esteban Gutierrez)

This commit is contained in:
Andrew Purtell 2014-08-28 15:53:19 -07:00
parent 82c97342aa
commit 3d73ff13d3

View File

@ -707,6 +707,8 @@ public class HStore implements Store {
} }
if (verifyBulkLoads) { if (verifyBulkLoads) {
long verificationStartTime = EnvironmentEdgeManager.currentTimeMillis();
LOG.info("Full verification started for bulk load hfile: " + srcPath.toString());
Cell prevKV = null; Cell prevKV = null;
HFileScanner scanner = reader.getScanner(false, false, false); HFileScanner scanner = reader.getScanner(false, false, false);
scanner.seekTo(); scanner.seekTo();
@ -732,6 +734,9 @@ public class HStore implements Store {
} }
prevKV = kv; prevKV = kv;
} while (scanner.next()); } while (scanner.next());
LOG.info("Full verification complete for bulk load hfile: " + srcPath.toString()
+ " took " + (EnvironmentEdgeManager.currentTimeMillis() - verificationStartTime)
+ " ms");
} }
} finally { } finally {
if (reader != null) reader.close(); if (reader != null) reader.close();