Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 9b0f2fa3e -> 11c175978


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/11c17597
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/11c17597
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/11c17597

Branch: refs/heads/branch-1.2
Commit: 11c17597801435840a4097d5ab0ed4de617b52dc
Parents: 9b0f2fa
Author: Chun-Hao Tang <tang7...@gmail.com>
Authored: Tue Sep 5 02:02:59 2017 +0800
Committer: Chia-Ping Tsai <chia7...@gmail.com>
Committed: Tue Sep 5 02:13:49 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/11c17597/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
index ff5632d..5e65c36 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
@@ -809,9 +809,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());
     }
   }
 

Reply via email to