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:19:10 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 d59ca6323 -> e43857d87


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

Branch: refs/heads/branch-1.3
Commit: e43857d87752a683ba94a9bbcac5b548053c6070
Parents: d59ca63
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:13:32 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/e43857d8/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 35ce2d7..f4b52c8 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