HBASE-18746 Throw exception with job.getStatus().getFailureInfo() when ExportSnapshot fails

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Chun-Hao Tang 2017-09-04 02:58:34 +08:00 committed by Chia-Ping Tsai
parent 0e01544838
commit 27db1298f7
1 changed files with 1 additions and 3 deletions

View File

@ -826,9 +826,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool {
// Run the MR Job
if (!job.waitForCompletion(true)) {
// TODO: Replace the fixed string with job.getStatus().getFailureInfo()
// when it will be available on all the supported versions.
throw new ExportSnapshotException("Copy Files Map-Reduce Job failed");
throw new ExportSnapshotException(job.getStatus().getFailureInfo());
}
}