You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2017/03/04 01:13:45 UTC
[jira] [Created] (TOREE-389) Scala interpreter hangs if Spark is
referenced before it is bound
Ryan Blue created TOREE-389:
-------------------------------
Summary: Scala interpreter hangs if Spark is referenced before it is bound
Key: TOREE-389
URL: https://issues.apache.org/jira/browse/TOREE-389
Project: TOREE
Issue Type: Bug
Reporter: Ryan Blue
Some users run cells in a notebook before the kernel is finished starting. The messages are queued and run after the KernelMessageRelay is enabled, but any messages that reference {{spark}} or bound variables cause IMain to throw an exception. That exception causes the interpreter to hang.
It seems odd that a missing variable reference causes IMain to throw an exception, so there may be a threading issue, a race between binding {{spark}} and the cell that references it.
The problem can be avoided by moving {{postInit}} tasks into init.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)