Repository: phoenix
Updated Branches:
  refs/heads/master 01dbd123b -> 21630d85f


Revert "PHOENIX-4141 Fix flapping TableSnapshotReadsMapReduceIT"

This reverts commit 9fb318bd8f03911bc7cb333a0ec974a685156fb7.


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

Branch: refs/heads/master
Commit: 0ace91f715e5136404774f98d1441ba639618248
Parents: 01dbd12
Author: Samarth Jain <[email protected]>
Authored: Sat Sep 2 10:27:58 2017 -0700
Committer: Samarth Jain <[email protected]>
Committed: Sat Sep 2 10:27:58 2017 -0700

----------------------------------------------------------------------
 .../apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/0ace91f7/phoenix-core/src/it/java/org/apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java
 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java
index 85fb0cd..39d97a1 100644
--- 
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java
+++ 
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/TableSnapshotReadsMapReduceIT.java
@@ -91,7 +91,7 @@ public class TableSnapshotReadsMapReduceIT extends 
ParallelStatsDisabledIT {
         // configure Phoenix M/R job to read snapshot
         final Configuration conf = getUtility().getConfiguration();
         Job job = Job.getInstance(conf);
-        Path tmpDir = new Path("/tmp");
+        Path tmpDir = getUtility().getRandomDir();
 
         PhoenixMapReduceUtil.setInput(job, PhoenixIndexDBWritable.class, 
SNAPSHOT_NAME, tableName,
             tmpDir, null, FIELD1, FIELD2, FIELD3);
@@ -111,7 +111,7 @@ public class TableSnapshotReadsMapReduceIT extends 
ParallelStatsDisabledIT {
         // configure Phoenix M/R job to read snapshot
         final Configuration conf = getUtility().getConfiguration();
         Job job = Job.getInstance(conf);
-        Path tmpDir = new Path("/tmp");
+        Path tmpDir = getUtility().getRandomDir();
         PhoenixMapReduceUtil.setInput(job, PhoenixIndexDBWritable.class, 
SNAPSHOT_NAME, tableName,
             tmpDir, FIELD3 + " > 0001", FIELD1, FIELD2, FIELD3);
 
@@ -131,7 +131,7 @@ public class TableSnapshotReadsMapReduceIT extends 
ParallelStatsDisabledIT {
         // configure Phoenix M/R job to read snapshot
         final Configuration conf = getUtility().getConfiguration();
         Job job = Job.getInstance(conf);
-        Path tmpDir = new Path("/tmp");
+        Path tmpDir = getUtility().getRandomDir();
         // Running limit with order by on non pk column
         String inputQuery = "SELECT * FROM " + tableName + " ORDER BY FIELD2 
LIMIT 1";
         PhoenixMapReduceUtil.setInput(job, PhoenixIndexDBWritable.class, 
SNAPSHOT_NAME, tableName,

Reply via email to