Repository: hbase
Updated Branches:
  refs/heads/branch-2 0e0154483 -> 27db1298f


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

Signed-off-by: Chia-Ping Tsai <chia7...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/27db1298
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/27db1298
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/27db1298

Branch: refs/heads/branch-2
Commit: 27db1298f740b5efedf2d9a4fe5c6d4a648187f7
Parents: 0e01544
Author: Chun-Hao Tang <tang7...@gmail.com>
Authored: Mon Sep 4 02:58:34 2017 +0800
Committer: Chia-Ping Tsai <chia7...@gmail.com>
Committed: Tue Sep 5 02:05:11 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/27db1298/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
----------------------------------------------------------------------
diff --git 
a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
 
b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
index e80410f..8b5af2b 100644
--- 
a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
+++ 
b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
@@ -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());
     }
   }
 

Reply via email to