Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.1 1b97f9d79 -> 089863a73
PHOENIX-4141 Fix flapping TableSnapshotReadsMapReduceIT Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/089863a7 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/089863a7 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/089863a7 Branch: refs/heads/4.x-HBase-1.1 Commit: 089863a7368e5f70afc8fc7f1048d15372ffaf1c Parents: 1b97f9d Author: Samarth Jain <[email protected]> Authored: Fri Sep 1 23:40:00 2017 -0700 Committer: Samarth Jain <[email protected]> Committed: Fri Sep 1 23:40:00 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/089863a7/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 92a2bda..063de5f 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 @@ -89,7 +89,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 = getUtility().getDataTestDir(SNAPSHOT_NAME); + Path tmpDir = new Path("/tmp"); PhoenixMapReduceUtil.setInput(job, PhoenixIndexDBWritable.class, SNAPSHOT_NAME, tableName, tmpDir, null, FIELD1, FIELD2, FIELD3); @@ -109,7 +109,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 = getUtility().getDataTestDir(SNAPSHOT_NAME); + Path tmpDir = new Path("/tmp"); PhoenixMapReduceUtil.setInput(job, PhoenixIndexDBWritable.class, SNAPSHOT_NAME, tableName, tmpDir, FIELD3 + " > 0001", FIELD1, FIELD2, FIELD3); @@ -129,7 +129,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 = getUtility().getDataTestDir(SNAPSHOT_NAME); + Path tmpDir = new Path("/tmp"); // 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,
