Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 cacbc5314 -> 6a4dd52dc


Revert "PHOENIX-4141 Fix flapping TableSnapshotReadsMapReduceIT"

This reverts commit 037dfd0056ccc59ce84ad22aa670860aca552d63.


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

Branch: refs/heads/4.x-HBase-1.2
Commit: d7b910f30259eb87be44e43a74b7a1c2ebe9ed27
Parents: cacbc53
Author: Samarth Jain <[email protected]>
Authored: Sat Sep 2 15:45:57 2017 -0700
Committer: Samarth Jain <[email protected]>
Committed: Sat Sep 2 15:45:57 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/d7b910f3/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