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-05 02:02:59 +08:00 committed by Chia-Ping Tsai
parent d5033fd350
commit 8eacd32beb
1 changed files with 1 additions and 3 deletions

View File

@ -795,9 +795,7 @@ public class ExportSnapshot extends Configured 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());
}
}