[ 
https://issues.apache.org/jira/browse/TOREE-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561275#comment-17561275
 ] 

SHOBHIT SHUKLA edited comment on TOREE-522 at 7/1/22 4:43 AM:
--------------------------------------------------------------

working output for older version of toree which was compatible with Spark 24.

{quote}bq. buffers: []
bq. channel: "iopub"
bq. content: {execution_count: 4, data: {,…}, metadata: {}}
bq. data: {,…}
bq. text/plain: "Name: Unknown Error↵Message: lastException: Throwable = 
null↵<console>:29: error: value getConns is not a member of 
com.ibm.analytics.projectutils.Project↵       project.getConns()↵               
^↵↵StackTrace: "
bq. execution_count: 4
bq. metadata: {}
bq. header: {username: "spark", version: "5.0", msg_type: "execute_result",…}
bq. metadata: {timestamp: 1602856719268}
bq. msg_id: "46ef5949-e7f8-4444-96ec-16e30b4bb2e7"
bq. msg_type: "execute_result"
bq. parent_header: {username: "username", session: 
"e421603347f14fa7868b0ec50a597107", version: "5.2",…}{quote}

non working output for toree which is compatible with Spark 32.

{quote}buffers: []
channel: "iopub"
content: {ename: "Compile Error",…}
ename: "Compile Error"
evalue: "<console>:29: error: value getConns is not a member of 
com.ibm.analytics.projectutils.Project↵       project.getConns()↵               
^↵"
traceback: []
header: {username: "spark", version: "5.0", msg_type: "error", msg_id: 
"7ef1f55e-45d6-4c09-83af-102bf99b0344",…}
metadata: {timestamp: "1602856059455"}
msg_id: "7ef1f55e-45d6-4c09-83af-102bf99b0344"
msg_type: "error"
parent_header: {username: "username", session: 
"e5338d7ca69340c2a77595dc6cd149a1", version: "5.2",…}
{quote}


was (Author: sshukla05):
working output for older version of toree which was compatible with Spark 24.

bq. buffers: []
bq. channel: "iopub"
bq. content: {execution_count: 4, data: {,…}, metadata: {}}
bq. data: {,…}
bq. text/plain: "Name: Unknown Error↵Message: lastException: Throwable = 
null↵<console>:29: error: value getConns is not a member of 
com.ibm.analytics.projectutils.Project↵       project.getConns()↵               
^↵↵StackTrace: "
bq. execution_count: 4
bq. metadata: {}
bq. header: {username: "spark", version: "5.0", msg_type: "execute_result",…}
bq. metadata: {timestamp: 1602856719268}
bq. msg_id: "46ef5949-e7f8-4444-96ec-16e30b4bb2e7"
bq. msg_type: "execute_result"
bq. parent_header: {username: "username", session: 
"e421603347f14fa7868b0ec50a597107", version: "5.2",…}

non working output for toree which is compatible with Spark 32.
```
buffers: []
channel: "iopub"
content: {ename: "Compile Error",…}
ename: "Compile Error"
evalue: "<console>:29: error: value getConns is not a member of 
com.ibm.analytics.projectutils.Project↵       project.getConns()↵               
^↵"
traceback: []
header: {username: "spark", version: "5.0", msg_type: "error", msg_id: 
"7ef1f55e-45d6-4c09-83af-102bf99b0344",…}
metadata: {timestamp: "1602856059455"}
msg_id: "7ef1f55e-45d6-4c09-83af-102bf99b0344"
msg_type: "error"
parent_header: {username: "username", session: 
"e5338d7ca69340c2a77595dc6cd149a1", version: "5.2",…}
```

> Release 0.4.0 changes around handling iopub.error have broken error reporting 
> in Jupyter Notebook UI
> ----------------------------------------------------------------------------------------------------
>
>                 Key: TOREE-522
>                 URL: https://issues.apache.org/jira/browse/TOREE-522
>             Project: TOREE
>          Issue Type: Bug
>          Components: Kernel
>    Affects Versions: 0.4.0
>         Environment: Both Spark 2.4.x and 2.2.x
> The version of the notebook server is: 6.0.3
> The server is running on this version of Python:
> Python 3.7.6 (default, Jan  8 2020, 19:59:22) 
> [GCC 7.3.0]
> Current Kernel Information:
> Apache Toree
>            Reporter: Ventsislav Konakchiyski
>            Assignee: Luciano Resende
>            Priority: Critical
>         Attachments: f12-toree-channels-api.png, 
> jupyter-classic-behavior.png, jupyterlab-behavior.png, 
> notebook-no-error-0.4.0.png, notebook-versions.png
>
>
> We have noticed that since the python package was released, all of our images 
> that were build after 0.4.0 was released were not reporting errors in the 
> notebook UI when running broken code.
>  
> What happens:
> 1. Open a Toree - Scala notebook
> 2. Type some random broken code
> 3. As far as the UI is concerned, it has ran successfully and no error was 
> reported to the user.
> See screenshot `notebook-no-error-0.4.0.png`
>  
> Inspecting the network requests, I can see that the error does come back from 
> the API, but the UI is not handling it correctly. See screenshot 
> `f12-toree-channels-api.png`
>  
> Reverting back to 0.3.0 release works fine as per `notebook-versions.png` 
> screenshot
>  
> Let me know if you need more details



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to