HBASE-11846 HStore#assertBulkLoadHFileOk should log if a full HFile verification will be performed during a bulkload (Esteban Gutierrez)
This commit is contained in:
parent
452b1b7299
commit
27ba048651
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue