{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15520","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15520/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15520/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15520/events","html_url":"https://github.com/apache/spark/pull/15520","id":183526759,"number":15520,"title":"[SPARK-13747][SQL]Fix concurrent executions in ForkJoinPool for SQL","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,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-17T21:02:13Z","updated_at":"2016-10-26T17:35:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15520","html_url":"https://github.com/apache/spark/pull/15520","diff_url":"https://github.com/apache/spark/pull/15520.diff","patch_url":"https://github.com/apache/spark/pull/15520.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCalling `Await.result` will allow other tasks to be run on the same thread when using ForkJoinPool. However, SQL uses a `ThreadLocal` execution id to trace Spark jobs launched by a query, which doesn't work perfectly in ForkJoinPool.\r\n\r\nThis PR just uses `Awaitable.result` instead to  prevent ForkJoinPool from running other tasks in the current waiting thread.\r\n\r\n## How was this patch tested?\r\n\r\nJenkins"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/256421706","html_url":"https://github.com/apache/spark/pull/15520#issuecomment-256421706","issue_url":"https://api.github.com/repos/apache/spark/issues/15520","id":256421706,"user":{"login":"yhuai","id":2072857,"avatar_url":"https://avatars.githubusercontent.com/u/2072857?v=3","gravatar_id":"","url":"https://api.github.com/users/yhuai","html_url":"https://github.com/yhuai","followers_url":"https://api.github.com/users/yhuai/followers","following_url":"https://api.github.com/users/yhuai/following{/other_user}","gists_url":"https://api.github.com/users/yhuai/gists{/gist_id}","starred_url":"https://api.github.com/users/yhuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhuai/subscriptions","organizations_url":"https://api.github.com/users/yhuai/orgs","repos_url":"https://api.github.com/users/yhuai/repos","events_url":"https://api.github.com/users/yhuai/events{/privacy}","received_events_url":"https://api.github.com/users/yhuai/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T17:35:01Z","updated_at":"2016-10-26T17:35:01Z","body":"lgtm"}}
{"actor":{"display_login":"yhuai"}}