HBASE-8367 LoadIncrementalHFiles does not return an error code nor throw Exception when failures occur due to timeouts (Brian Dougan)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1481988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-05-13 17:48:55 +00:00
parent 86dc135a34
commit 429af3c930
1 changed files with 5 additions and 0 deletions

View File

@ -314,6 +314,11 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
LOG.error(err); LOG.error(err);
} }
} }
if (queue != null && !queue.isEmpty()) {
throw new RuntimeException("Bulk load aborted with some files not yet loaded."
+ "Please check log for more details.");
}
} }
/** /**