Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As zsxwing points out at https://github.com/apache/spark/pull/7276#issuecomment-121097747, SimpleFutureAction currently blocks a separate execution context thread for each callback registered via onComplete:
override def onComplete[U](func: (Try[T]) => U)(implicit executor: ExecutionContext) { executor.execute(new Runnable { override def run() { func(awaitResult()) } }) }
We should fix this so that callbacks do not steal threads.
Attachments
Issue Links
- is duplicated by
-
SPARK-11296 FutureAction.onComplete consumes a thread while waiting for job
- Resolved
- links to