1
0

[HOTFIX] close spark session in functional test suite and disable spark3 test for spark2 (#2727)

This commit is contained in:
Gary Li
2021-03-26 20:58:29 -07:00
committed by Gary Li
parent d415d45416
commit 452f5e2d66
5 changed files with 35 additions and 1 deletions

View File

@@ -124,15 +124,19 @@ public class UtilitiesTestBase {
public static void cleanupClass() {
if (hdfsTestService != null) {
hdfsTestService.stop();
hdfsTestService = null;
}
if (hiveServer != null) {
hiveServer.stop();
hiveServer = null;
}
if (hiveTestService != null) {
hiveTestService.stop();
hiveTestService = null;
}
if (zookeeperTestService != null) {
zookeeperTestService.stop();
zookeeperTestService = null;
}
}
@@ -150,6 +154,11 @@ public class UtilitiesTestBase {
TestDataSource.resetDataGen();
if (jsc != null) {
jsc.stop();
jsc = null;
}
if (sparkSession != null) {
sparkSession.close();
sparkSession = null;
}
if (context != null) {
context = null;