{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13211","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13211/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13211/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13211/events","html_url":"https://github.com/apache/spark/pull/13211","id":155884468,"number":13211,"title":"[SPARK-15430][SQL] Fix potential ConcurrentModificationException for ListAccumulator","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-20T04:22:31Z","updated_at":"2016-05-21T15:11:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13211","html_url":"https://github.com/apache/spark/pull/13211","diff_url":"https://github.com/apache/spark/pull/13211.diff","patch_url":"https://github.com/apache/spark/pull/13211.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIn `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.\r\n\r\nTo fix it, we can copy a list of the underlying list and then create the unmodifiable view of this list instead.\r\n\r\n## How was this patch tested?\r\nThe exception might be difficult to test. Existing tests should be passed.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/220782917","html_url":"https://github.com/apache/spark/pull/13211#issuecomment-220782917","issue_url":"https://api.github.com/repos/apache/spark/issues/13211","id":220782917,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T15:11:15Z","updated_at":"2016-05-21T15:11:15Z","body":"**[Test build #59069 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/59069/consoleFull)** for PR 13211 at commit [`3af08bd`](https://github.com/apache/spark/commit/3af08bd7c417520854971d2d14fb4ae608a9522a).\n * This patch **fails MiMa tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}