aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorLiang-Chi Hsieh <simonh@tw.ibm.com>2016-05-22 08:08:46 -0500
committerSean Owen <sowen@cloudera.com>2016-05-22 08:08:46 -0500
commit7920296bf8f313e010205937d3ebcbbc7b1a1d9e (patch)
tree05e9ddfb3dc710c6cbc7e04ae178dbb507db999c /launcher
parent1ffa608ba5a849739a56047bda8b157b86b08650 (diff)
downloadspark-7920296bf8f313e010205937d3ebcbbc7b1a1d9e.tar.gz
spark-7920296bf8f313e010205937d3ebcbbc7b1a1d9e.tar.bz2
spark-7920296bf8f313e010205937d3ebcbbc7b1a1d9e.zip
[SPARK-15430][SQL] Fix potential ConcurrentModificationException for ListAccumulator
## What changes were proposed in this pull request? In `ListAccumulator` we create an unmodifiable view for underlying list. However, it doesn't prevent the underlying to be modified further. So as we access the unmodifiable list, the underlying list can be modified in the same time. It could cause `java.util.ConcurrentModificationException`. We can observe such exception in recent tests. To fix it, we can copy a list of the underlying list and then create the unmodifiable view of this list instead. ## How was this patch tested? The exception might be difficult to test. Existing tests should be passed. Author: Liang-Chi Hsieh <simonh@tw.ibm.com> Closes #13211 from viirya/fix-concurrentmodify.
Diffstat (limited to 'launcher')
0 files changed, 0 insertions, 0 deletions