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:19 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 26096f363 -> 95a7e7230


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

Branch: refs/heads/master
Commit: 95a7e72302b27aa09e13fef71e233f087334f3eb
Parents: 26096f3
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Thu Jun 12 08:09:37 2014 +0100
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Thu Jun 12 08:09:37 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/95a7e723/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 5a5ed76..5215c41 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
@@ -674,7 +674,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