chaoqin-li1123 commented on code in PR #41099:
URL: https://github.com/apache/spark/pull/41099#discussion_r1206242968
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala:
##########
@@ -279,7 +280,7 @@ class StateStoreSuite extends
StateStoreSuiteBase[HDFSBackedStateStoreProvider]
val timeoutDuration = 1.minute
quietly {
- withSpark(new SparkContext(conf)) { sc =>
+ withSpark(SparkContext.getOrCreate(conf)) { sc =>
Review Comment:
I don't mean to override the config here, the reason why I need this is
because I extends SharedSparkSession, which already have an active spark
context, if I don't modify the test, it will throw an error when trying to
create a new spark context.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]