HBASE-4734 [bulk load] Warn if bulk load directory contained no files

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1200958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-11-11 17:09:12 +00:00
parent 4206b1e860
commit a51931de2d
2 changed files with 7 additions and 0 deletions

View File

@ -465,6 +465,7 @@ Release 0.92.0 - Unreleased
HBASE-4740 [bulk load] the HBASE-4552 API can't tell if errors on region server are recoverable
(Jonathan Hsieh)
HBASE-4741 Online schema change doesn't return errors
HBASE-4734 [bulk load] Warn if bulk load directory contained no files
TESTS
HBASE-4450 test for number of blocks read: to serve as baseline for expected

View File

@ -208,6 +208,12 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
return;
}
if (queue.isEmpty()) {
LOG.warn("Bulk load operation did not find any files to load in " +
"directory " + hfofDir.toUri() + ". Does it contain files in " +
"subdirectories that correspond to column family names?");
}
// Assumes that region splits can happen while this occurs.
while (!queue.isEmpty()) {
// need to reload split keys each iteration.