You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2019/12/09 10:03:05 UTC
[hive] branch master updated: HIVE-22598: Fix
TestCompactor.testDisableCompactionDuringReplLoad flakyness (Peter Vary
reviewed by Zoltan Haindrich)
This is an automated email from the ASF dual-hosted git repository.
pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new d7a193b HIVE-22598: Fix TestCompactor.testDisableCompactionDuringReplLoad flakyness (Peter Vary reviewed by Zoltan Haindrich)
d7a193b is described below
commit d7a193bde38344a6be78d07a8af1750ad0986d81
Author: Peter Vary <pv...@cloudera.com>
AuthorDate: Mon Dec 9 11:02:19 2019 +0100
HIVE-22598: Fix TestCompactor.testDisableCompactionDuringReplLoad flakyness (Peter Vary reviewed by Zoltan Haindrich)
---
.../java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java
index f2ea30b..445e39c 100644
--- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java
+++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java
@@ -30,6 +30,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
+import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Random;
@@ -1574,8 +1575,9 @@ public class TestCompactor {
Assert.assertEquals("initiated", compacts.get(i).getState());
partNames.add(compacts.get(i).getPartitionname());
}
- Assert.assertEquals("ds=today", partNames.get(1));
- Assert.assertEquals("ds=yesterday", partNames.get(0));
+ Collections.sort(partNames);
+ Assert.assertEquals("ds=today", partNames.get(0));
+ Assert.assertEquals("ds=yesterday", partNames.get(1));
executeStatementOnDriver("drop database if exists " + database + " cascade", driver);
// Finish the scheduled compaction for ttp2