diff --git a/beeline/src/test/org/apache/hive/beeline/cli/TestHiveCli.java b/beeline/src/test/org/apache/hive/beeline/cli/TestHiveCli.java
index 048ca59becb0..a8378d914356 100644
--- a/beeline/src/test/org/apache/hive/beeline/cli/TestHiveCli.java
+++ b/beeline/src/test/org/apache/hive/beeline/cli/TestHiveCli.java
@@ -169,8 +169,11 @@ public void testSqlFromCmdWithDBName() {
@Test
public void testSqlFromCmdWithEmbeddedQuotes() {
+ // In Beeline.java, after upgrading the Maven SureFire plugin to 3.0.0-M5, InputStream inputStream = System.in
+ // no longer contains an EOT byte[]. This change causes an indefinite loop when calling
+ // beeLine.getConsoleReader().readLine(prompt.toString()). To resolve this, a delimiter has been added.
verifyCMD(null, "hive", out,
- new String[] { "-e", "select \"hive\"" }, ERRNO_OK, true);
+ new String[] { "-e", "select \"hive\";" }, ERRNO_OK, true);
}
@Test
diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationMigrationTool.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationMigrationTool.java
index 4cd0541cf2f6..dccd5316bb0f 100644
--- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationMigrationTool.java
+++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationMigrationTool.java
@@ -31,6 +31,7 @@
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Ignore;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
@@ -45,6 +46,8 @@
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+// Enable the test post fixing HIVE-28608
+@Ignore
public class TestReplicationMigrationTool extends BaseReplicationAcrossInstances {
String extraPrimaryDb;
diff --git a/llap-server/pom.xml b/llap-server/pom.xml
index 4a40a2e1e72d..3c7d32286330 100644
--- a/llap-server/pom.xml
+++ b/llap-server/pom.xml
@@ -371,6 +371,16 @@
${log4j2.version}
tests
test
+
+
+ org.junit-pioneer
+ junit-pioneer
+
+
+ org.junit.platform
+ junit-platform-commons
+
+
org.mockito
@@ -386,11 +396,13 @@
org.junit.jupiter
junit-jupiter-engine
+ ${junit.jupiter.version}
test
org.junit.vintage
junit-vintage-engine
+ ${junit.vintage.version}
test
diff --git a/pom.xml b/pom.xml
index 279ddcb17ef3..4620ad3d8e89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,7 +99,7 @@
3.1.0
2.16.0
3.5.0
- 3.0.0-M4
+ 3.5.1
2.7.10
2.3.0
@@ -166,8 +166,8 @@
6.0.0
1.8
4.13.2
- 5.10.0
- 5.6.3
+ 5.11.2
+ 5.11.2
2.5.0
5.5.0
1.11.9
@@ -1753,6 +1753,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ false
**/TestSerDe.java
**/TestHiveMetaStore.java
@@ -1764,8 +1765,8 @@
true
false
- false
- ${maven.test.jvm.args}
+ false
+ ${maven.test.jvm.args} -Xshare:off
false
${test.conf.dir}
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionAuthWithBatches.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionAuthWithBatches.java
index 191d211d4b72..23f7c768f51e 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionAuthWithBatches.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionAuthWithBatches.java
@@ -19,6 +19,7 @@
package org.apache.hadoop.hive.ql.exec;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
import org.apache.hadoop.hive.metastore.api.GetPartitionsPsWithAuthRequest;
@@ -67,7 +68,7 @@ public class TestGetPartitionAuthWithBatches {
@BeforeClass
public static void setupClass() throws HiveException {
- hiveConf = new HiveConf(TestGetPartitionAuthWithBatches.class);
+ hiveConf = new HiveConfForTest(TestGetPartitionAuthWithBatches.class);
hiveConf.set("hive.security.authorization.enabled", "true");
hiveConf.set("hive.security.authorization.manager","org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationProvider");
hive = Hive.get();
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionInBatches.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionInBatches.java
index d4afff716bf4..01768f3bc927 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionInBatches.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestGetPartitionInBatches.java
@@ -19,6 +19,7 @@
package org.apache.hadoop.hive.ql.exec;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
import org.apache.hadoop.hive.metastore.api.GetPartitionsByNamesRequest;
@@ -64,9 +65,9 @@ public class TestGetPartitionInBatches {
@BeforeClass
public static void setupClass() throws HiveException {
- hiveConf = new HiveConf(TestGetPartitionInBatches.class);
- hive = Hive.get();
- SessionState.start(hiveConf);
+ hiveConf = new HiveConfForTest(TestGetPartitionInBatches.class);
+ SessionState ss = SessionState.start(hiveConf);
+ hive = ss.getHiveDb();
try {
msc = new HiveMetaStoreClient(hiveConf);
} catch (MetaException e) {
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckCreatePartitionsInBatches.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckCreatePartitionsInBatches.java
index e666b4d2d3d3..137530906d88 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckCreatePartitionsInBatches.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckCreatePartitionsInBatches.java
@@ -18,6 +18,7 @@
package org.apache.hadoop.hive.ql.exec;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
import org.apache.hadoop.hive.metastore.CheckResult.PartitionResult;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
@@ -62,7 +63,7 @@ public class TestMsckCreatePartitionsInBatches {
@BeforeClass
public static void setupClass() throws HiveException, MetaException {
- hiveConf = new HiveConf(TestMsckCreatePartitionsInBatches.class);
+ hiveConf = new HiveConfForTest(TestMsckCreatePartitionsInBatches.class);
hiveConf.setIntVar(ConfVars.HIVE_MSCK_REPAIR_BATCH_SIZE, 5);
hiveConf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
"org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckDropPartitionsInBatches.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckDropPartitionsInBatches.java
index a62816537016..e504f680f228 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckDropPartitionsInBatches.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/TestMsckDropPartitionsInBatches.java
@@ -19,6 +19,7 @@
import org.apache.commons.lang3.tuple.Pair;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
import org.apache.hadoop.hive.metastore.CheckResult.PartitionResult;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient;
@@ -65,7 +66,7 @@ public class TestMsckDropPartitionsInBatches {
@BeforeClass
public static void setupClass() throws Exception {
- hiveConf = new HiveConf(TestMsckCreatePartitionsInBatches.class);
+ hiveConf = new HiveConfForTest(TestMsckCreatePartitionsInBatches.class);
hiveConf.setIntVar(ConfVars.HIVE_MSCK_REPAIR_BATCH_SIZE, 5);
hiveConf.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
"org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/hooks/TestHooks.java b/ql/src/test/org/apache/hadoop/hive/ql/hooks/TestHooks.java
index e0dccc9f5834..00fc86857484 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/hooks/TestHooks.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/hooks/TestHooks.java
@@ -20,6 +20,7 @@
import static org.junit.Assert.assertEquals;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.ql.Driver;
import org.apache.hadoop.hive.ql.session.SessionState;
import org.junit.Before;
@@ -31,7 +32,7 @@ public class TestHooks {
@BeforeClass
public static void onetimeSetup() throws Exception {
- HiveConf conf = new HiveConf(TestHooks.class);
+ HiveConf conf = new HiveConfForTest(TestHooks.class);
conf
.setVar(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER,
"org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory");
@@ -41,7 +42,7 @@ public static void onetimeSetup() throws Exception {
@AfterClass
public static void onetimeTeardown() throws Exception {
- HiveConf conf = new HiveConf(TestHooks.class);
+ HiveConf conf = new HiveConfForTest(TestHooks.class);
Driver driver = createDriver(conf);
driver.run("drop table t1");
}
@@ -52,7 +53,7 @@ public void setup() {
@Test
public void testRedactLogString() throws Exception {
- HiveConf conf = new HiveConf(TestHooks.class);
+ HiveConf conf = new HiveConfForTest(TestHooks.class);
String str;
HiveConf.setVar(conf, HiveConf.ConfVars.QUERY_REDACTOR_HOOKS, SimpleQueryRedactor.class.getName());
@@ -69,7 +70,7 @@ public void testRedactLogString() throws Exception {
@Test
public void testQueryRedactor() throws Exception {
- HiveConf conf = new HiveConf(TestHooks.class);
+ HiveConf conf = new HiveConfForTest(TestHooks.class);
HiveConf.setVar(conf, HiveConf.ConfVars.QUERY_REDACTOR_HOOKS,
SimpleQueryRedactor.class.getName());
conf
diff --git a/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveCopyFiles.java b/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveCopyFiles.java
index f9c10f5ffb5d..2ef7bfcbccdd 100644
--- a/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveCopyFiles.java
+++ b/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveCopyFiles.java
@@ -20,6 +20,7 @@
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConfForTest;
import org.apache.hadoop.hive.ql.session.SessionState;
import org.junit.BeforeClass;
import org.junit.Rule;
@@ -62,7 +63,7 @@ public static List