aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/rdd.py
diff options
context:
space:
mode:
authorTathagata Das <tathagata.das1565@gmail.com>2015-12-01 21:04:52 -0800
committerShixiong Zhu <shixiong@databricks.com>2015-12-01 21:04:52 -0800
commit8a75a3049539eeef04c0db51736e97070c162b46 (patch)
tree1721ce076c393cd28288cb33f85ad104bfbcdd5b /python/pyspark/rdd.py
parent96691feae0229fd693c29475620be2c4059dd080 (diff)
downloadspark-8a75a3049539eeef04c0db51736e97070c162b46.tar.gz
spark-8a75a3049539eeef04c0db51736e97070c162b46.tar.bz2
spark-8a75a3049539eeef04c0db51736e97070c162b46.zip
[SPARK-12087][STREAMING] Create new JobConf for every batch in saveAsHadoopFiles
The JobConf object created in `DStream.saveAsHadoopFiles` is used concurrently in multiple places: * The JobConf is updated by `RDD.saveAsHadoopFile()` before the job is launched * The JobConf is serialized as part of the DStream checkpoints. These concurrent accesses (updating in one thread, while the another thread is serializing it) can lead to concurrentModidicationException in the underlying Java hashmap using in the internal Hadoop Configuration object. The solution is to create a new JobConf in every batch, that is updated by `RDD.saveAsHadoopFile()`, while the checkpointing serializes the original JobConf. Tests to be added in #9988 will fail reliably without this patch. Keeping this patch really small to make sure that it can be added to previous branches. Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #10088 from tdas/SPARK-12087.
Diffstat (limited to 'python/pyspark/rdd.py')
0 files changed, 0 insertions, 0 deletions