HBASE-20579 Include original exception in wrapped exception Signed-off-by: Ted Yu <yuzhih...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a5ed463d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a5ed463d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a5ed463d Branch: refs/heads/HBASE-19064 Commit: a5ed463d48b9bd1785f12a9abdb92de1c76767fd Parents: 8377873 Author: Josh Elser <els...@apache.org> Authored: Sat Jun 2 18:11:08 2018 -0400 Committer: Josh Elser <els...@apache.org> Committed: Sat Jun 2 22:27:13 2018 -0400 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/a5ed463d/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 f75a479..93b8ab5 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 @@ -877,7 +877,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool { fs.setOwner(path, filesUser, filesGroup); } catch (IOException e) { throw new RuntimeException( - "set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed"); + "set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed", e); } }, conf); } @@ -893,7 +893,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool { fs.setPermission(path, perm); } catch (IOException e) { throw new RuntimeException( - "set permission for file " + path + " to " + filesMode + " failed"); + "set permission for file " + path + " to " + filesMode + " failed", e); } }, conf); }