GitHub user zsxwing opened a pull request:
https://github.com/apache/spark/pull/15646
[SPARK-13747][SQL] Fix concurrent executions in ForkJoinPool for SQL
(branch 2.0)
## What changes were proposed in this pull request?
Backport #15520 to 2.0.
## How was this patch tested?
Jenkins
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsxwing/spark SPARK-13747-2.0
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15646.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15646
----
commit eba011aea147f8eb6eb50dd380512167e48e4624
Author: Shixiong Zhu <[email protected]>
Date: 2016-10-26T17:36:36Z
[SPARK-13747][SQL] Fix concurrent executions in ForkJoinPool for SQL
Calling `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.
This PR just uses `Awaitable.result` instead to prevent ForkJoinPool from
running other tasks in the current waiting thread.
Jenkins
Author: Shixiong Zhu <[email protected]>
Closes #15520 from zsxwing/SPARK-13747.
(cherry picked from commit 7ac70e7ba8d610a45c21a70dc28e4c989c19451b)
Signed-off-by: Shixiong Zhu <[email protected]>
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]