aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorShixiong Zhu <shixiong@databricks.com>2016-11-08 13:14:56 -0800
committerShixiong Zhu <shixiong@databricks.com>2016-11-08 13:14:56 -0800
commitb6de0c98c70960a97b07615b0b08fbd8f900fbe7 (patch)
tree9a541b2d10a0ae2f6721214c784e06611d81a944 /sql/hive
parent26e1c53aceee37e3687a372ff6c6f05463fd8a94 (diff)
downloadspark-b6de0c98c70960a97b07615b0b08fbd8f900fbe7.tar.gz
spark-b6de0c98c70960a97b07615b0b08fbd8f900fbe7.tar.bz2
spark-b6de0c98c70960a97b07615b0b08fbd8f900fbe7.zip
[SPARK-18280][CORE] Fix potential deadlock in `StandaloneSchedulerBackend.dead`
## What changes were proposed in this pull request? "StandaloneSchedulerBackend.dead" is called in a RPC thread, so it should not call "SparkContext.stop" in the same thread. "SparkContext.stop" will block until all RPC threads exit, if it's called inside a RPC thread, it will be dead-lock. This PR add a thread local flag inside RPC threads. `SparkContext.stop` uses it to decide if launching a new thread to stop the SparkContext. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes #15775 from zsxwing/SPARK-18280.
Diffstat (limited to 'sql/hive')
0 files changed, 0 insertions, 0 deletions