Skip to content

Commit b18be38

Browse files
wForgetulysses-you
authored andcommitted
[KYUUBI #2231] Close action and default sparksession before createSpark.
### _Why are the changes needed?_ close #2231 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2232 from wForget/KYUUBI-2231. Closes #2231 96328cf [wforget] [KYUUBI-2231] Close action and default sparksession before `createSpark`. Authored-by: wforget <643348094@qq.com> Signed-off-by: ulysses-you <ulyssesyou@apache.org>
1 parent a5b4c1b commit b18be38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

externals/kyuubi-spark-sql-engine/src/test/scala/org/apache/kyuubi/engine/spark/WithSparkSQLEngine.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ trait WithSparkSQLEngine extends KyuubiFunSuite {
6363
System.setProperty(k, v)
6464
}
6565

66+
SparkSession.getActiveSession.foreach(_.close())
67+
SparkSession.getDefaultSession.foreach(_.close())
6668
SparkSession.clearActiveSession()
6769
SparkSession.clearDefaultSession()
6870
SparkSQLEngine.setupConf()

0 commit comments

Comments
 (0)