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 2020/03/18 10:27:40 UTC
[hive] branch master updated: HIVE-23019: Fix
TestTxnCommandsForMmTable test case (Peter Varga via Peter Vary)
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 88f8c80 HIVE-23019: Fix TestTxnCommandsForMmTable test case (Peter Varga via Peter Vary)
88f8c80 is described below
commit 88f8c807bb9c9fcbf5d581c9138decb571adaca6
Author: Peter Varga <pv...@cloudera.com>
AuthorDate: Wed Mar 18 11:27:11 2020 +0100
HIVE-23019: Fix TestTxnCommandsForMmTable test case (Peter Varga via Peter Vary)
---
ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommandsForMmTable.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommandsForMmTable.java b/ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommandsForMmTable.java
index 1de25cf..6525ffc 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommandsForMmTable.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommandsForMmTable.java
@@ -19,7 +19,6 @@
package org.apache.hadoop.hive.ql;
import java.io.File;
-import java.util.Arrays;
import java.util.List;
import org.apache.hadoop.fs.FileStatus;
@@ -211,7 +210,6 @@ public class TestTxnCommandsForMmTable extends TxnCommandsBaseForTests {
for(int h=0; h < pStrings.length; h++) {
status = fs.listStatus(new Path(TEST_WAREHOUSE_DIR + "/" +
(TableExtended.MMTBLPART).toString().toLowerCase() + pStrings[h]), FileUtils.STAGING_DIR_PATH_FILTER);
- Arrays.sort(status);
// There should be 1 delta dir, plus a base dir in the location
Assert.assertEquals(2, status.length);
for (int i = 0; i < status.length; i++) {
@@ -221,7 +219,7 @@ public class TestTxnCommandsForMmTable extends TxnCommandsBaseForTests {
} else {
sawBase = true;
baseDirs[h] = dirName;
- Assert.assertTrue(baseDirs[i].matches("base_.*"));
+ Assert.assertTrue(baseDirs[h].matches("base_.*"));
}
}
Assert.assertEquals(1, deltaCount);