hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chia7...@apache.org
Subject hbase git commit: HBASE-18746 Throw exception with job.getStatus().getFailureInfo() when ExportSnapshot fails
Date Mon, 04 Sep 2017 18:18:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 c97f0f2f2 -> 5ab41d069


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

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


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

Branch: refs/heads/branch-1.4
Commit: 5ab41d06963a68484f0eacd7dbc01ff36fb153f8
Parents: c97f0f2
Author: Chun-Hao Tang <tang7526@gmail.com>
Authored: Tue Sep 5 02:02:59 2017 +0800
Committer: Chia-Ping Tsai <chia7712@gmail.com>
Committed: Tue Sep 5 02:09:34 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/5ab41d06/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 97d0603..37a02bd 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
@@ -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());
     }
   }
 


Mime
View raw message