phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vincentp...@apache.org
Subject phoenix git commit: PHOENIX-4797 file not found or file exist exception when create global index use -snapshot option
Date Fri, 03 Aug 2018 14:48:56 GMT
Repository: phoenix
Updated Branches:
  refs/heads/4.14-HBase-1.2 f0f8b9fc1 -> 75e0305e9


PHOENIX-4797 file not found or file exist exception when create global index use -snapshot
option


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

Branch: refs/heads/4.14-HBase-1.2
Commit: 75e0305e99831e6011a3de613faeaa3c391dbda3
Parents: f0f8b9f
Author: 492066199 <492066199@qq.com>
Authored: Fri Jul 6 10:45:38 2018 +0800
Committer: Vincent Poon <vincentpoon@apache.org>
Committed: Fri Aug 3 10:49:45 2018 -0400

----------------------------------------------------------------------
 .../org/apache/phoenix/iterate/TableSnapshotResultIterator.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/75e0305e/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableSnapshotResultIterator.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableSnapshotResultIterator.java
b/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableSnapshotResultIterator.java
index df60339..016d3be 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableSnapshotResultIterator.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableSnapshotResultIterator.java
@@ -39,6 +39,7 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
+import java.util.UUID;
 
 public class TableSnapshotResultIterator implements ResultIterator {
 
@@ -65,7 +66,8 @@ public class TableSnapshotResultIterator implements ResultIterator {
     this.scan = scan;
     this.scanMetricsHolder = scanMetricsHolder;
     this.scanIterator = UNINITIALIZED_SCANNER;
-    this.restoreDir = new Path(configuration.get(PhoenixConfigurationUtil.RESTORE_DIR_KEY));
+    this.restoreDir = new Path(configuration.get(PhoenixConfigurationUtil.RESTORE_DIR_KEY),
+        UUID.randomUUID().toString());
     this.snapshotName = configuration.get(
         PhoenixConfigurationUtil.SNAPSHOT_NAME_KEY);
     this.rootDir = FSUtils.getRootDir(configuration);


Mime
View raw message