{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12261","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12261/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12261/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12261/events","html_url":"https://github.com/apache/spark/pull/12261","id":146990384,"number":12261,"title":"[SPARK-14494][SQL]Fix the race conditions in MemoryStream and MemorySink","user":{"login":"zsxwing","id":1000778,"avatar_url":"https://avatars.githubusercontent.com/u/1000778?v=3","gravatar_id":"","url":"https://api.github.com/users/zsxwing","html_url":"https://github.com/zsxwing","followers_url":"https://api.github.com/users/zsxwing/followers","following_url":"https://api.github.com/users/zsxwing/following{/other_user}","gists_url":"https://api.github.com/users/zsxwing/gists{/gist_id}","starred_url":"https://api.github.com/users/zsxwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsxwing/subscriptions","organizations_url":"https://api.github.com/users/zsxwing/orgs","repos_url":"https://api.github.com/users/zsxwing/repos","events_url":"https://api.github.com/users/zsxwing/events{/privacy}","received_events_url":"https://api.github.com/users/zsxwing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T17:33:42Z","updated_at":"2016-04-08T17:37:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12261","html_url":"https://github.com/apache/spark/pull/12261","diff_url":"https://github.com/apache/spark/pull/12261.diff","patch_url":"https://github.com/apache/spark/pull/12261.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nMake sure accessing mutable variables in MemoryStream and MemorySink are protected by `synchronized`.\r\nThis is probably why MemorySinkSuite failed here: https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.2/650/testReport/junit/org.apache.spark.sql.streaming/MemorySinkSuite/registering_as_a_table/\r\n\r\n## How was this patch tested?\r\nExisting unit tests.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/207530991","html_url":"https://github.com/apache/spark/pull/12261#issuecomment-207530991","issue_url":"https://api.github.com/repos/apache/spark/issues/12261","id":207530991,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T17:37:19Z","updated_at":"2016-04-08T17:37:19Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55367/\nTest FAILed."}}