aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavies Liu <davies.liu@gmail.com>2014-10-07 12:06:12 -0700
committerMatei Zaharia <matei@databricks.com>2014-10-07 12:06:12 -0700
commit655032965fc7e2368dff9947fc024ac720ffd19c (patch)
treebb93392598379e53272b27cd9592d89861e214a0 /tools
parent12e2551ea1773ae19559ecdada35d23608e6b0ec (diff)
downloadspark-655032965fc7e2368dff9947fc024ac720ffd19c.tar.gz
spark-655032965fc7e2368dff9947fc024ac720ffd19c.tar.bz2
spark-655032965fc7e2368dff9947fc024ac720ffd19c.zip
[SPARK-3762] clear reference of SparkEnv after stop
SparkEnv is cached in ThreadLocal object, so after stop and create a new SparkContext, old SparkEnv is still used by some threads, it will trigger many problems, for example, pyspark will have problem after restart SparkContext, because py4j use thread pool for RPC. This patch will clear all the references after stop a SparkEnv. cc mateiz tdas pwendell Author: Davies Liu <davies.liu@gmail.com> Closes #2624 from davies/env and squashes the following commits: a69f30c [Davies Liu] deprecate getThreadLocal ba77ca4 [Davies Liu] remove getThreadLocal(), update docs ee62bb7 [Davies Liu] cleanup ThreadLocal of SparnENV 4d0ea8b [Davies Liu] clear reference of SparkEnv after stop
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions