Skip to content
Snippets Groups Projects
user avatar
Shixiong Zhu authored
## What changes were proposed in this pull request?

`Signaling.cancelOnInterrupt` leaks a SparkContext per call and it makes ReplSuite unstable.

This PR adds `SparkContext.getActive` to allow `Signaling.cancelOnInterrupt` to get the active `SparkContext` to avoid the leak.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #16825 from zsxwing/SPARK-19481.
303f00a4
History
Name Last commit Last update
..
scala-2.10/src
scala-2.11/src
src
pom.xml