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 452b1b7299
commit 27ba048651
1 changed files with 5 additions and 0 deletions

View File

@ -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();