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
82c97342aa
commit
3d73ff13d3
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user