Skip to content

Commit

Permalink
PHOENIX-4797 file not found or file exist exception when create globa…
Browse files Browse the repository at this point in the history
…l index use -snaopshot option
  • Loading branch information
492066199 committed Jul 5, 2018
1 parent 6195f8e commit c6754c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;

public class TableSnapshotResultIterator implements ResultIterator {

Expand All @@ -65,7 +66,8 @@ public TableSnapshotResultIterator(Configuration configuration, Scan scan, ScanM
this.scan = scan;
this.scanMetricsHolder = scanMetricsHolder;
this.scanIterator = UNINITIALIZED_SCANNER;
this.restoreDir = new Path(configuration.get(PhoenixConfigurationUtil.RESTORE_DIR_KEY));
this.restoreDir = new Path(new Path(configuration.get(PhoenixConfigurationUtil.RESTORE_DIR_KEY)),
UUID.randomUUID().toString());
this.snapshotName = configuration.get(
PhoenixConfigurationUtil.SNAPSHOT_NAME_KEY);
this.rootDir = FSUtils.getRootDir(configuration);
Expand Down

0 comments on commit c6754c1

Please sign in to comment.