hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject git commit: HBASE-11327 ExportSnapshot hit stackoverflow error when target snapshotDir doesn't contain uri (Demai Ni)
Date Thu, 12 Jun 2014 07:17:27 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 3d3e7eb22 -> b9c8fd9eb


HBASE-11327 ExportSnapshot hit stackoverflow error when target snapshotDir doesn't contain
uri (Demai Ni)


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

Branch: refs/heads/0.98
Commit: b9c8fd9eb2104be652f528f87052b2a9d0150f08
Parents: 3d3e7eb
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Thu Jun 12 08:16:40 2014 +0100
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Thu Jun 12 08:16:40 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b9c8fd9e/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 100d0d0..669c189 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
@@ -649,7 +649,7 @@ public final class ExportSnapshot extends Configured implements Tool {
     // Update the conf with the current root dir, since may be a different cluster
     Configuration conf = new Configuration(baseConf);
     FSUtils.setRootDir(conf, rootDir);
-    FSUtils.setFsDefault(conf, snapshotDir);
+    FSUtils.setFsDefault(conf, FSUtils.getRootDir(conf));
     SnapshotDescription snapshotDesc = SnapshotDescriptionUtils.readSnapshotInfo(fs, snapshotDir);
     SnapshotReferenceUtil.verifySnapshot(conf, fs, snapshotDir, snapshotDesc);
   }


Mime
View raw message