-
- Downloads
[SPARK-15131][SQL] Shutdown StateStore management thread when SparkContext has been shutdown
## What changes were proposed in this pull request? Make sure that whenever the StateStoreCoordinator cannot be contacted, assume that the SparkContext and RpcEnv on the driver has been shutdown, and therefore stop the StateStore management thread, and unload all loaded stores. ## How was this patch tested? Updated unit tests. Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #12905 from tdas/SPARK-15131.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala 25 additions, 21 deletions...ache/spark/sql/execution/streaming/state/StateStore.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreSuite.scala 14 additions, 1 deletion...spark/sql/execution/streaming/state/StateStoreSuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingAggregationSuite.scala 9 additions, 1 deletion...pache/spark/sql/streaming/StreamingAggregationSuite.scala
Please register or sign in to comment