-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Option to restart interpreter from paragraph. #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I think providing a button to restart interpreter in the notebook page is good idea. But 'Restart Interpreter' button seem to displayed when paragraph status is ERROR. However, paragraph can be ERROR status with such things like syntax error, table not found etc. So ERROR status does not always mean Interpreter restart is required. And can think little bit more about position of the restart interpreter button and message? Is there any alternative place? because of interpreter is notebook specific. I think showing button in notebook is more intuitive than showing button in paragraph. |
|
Yes, that does make sense. How about if we try to look for string/error related to transport or texception (thrift) and then show it. And giving restart at a notebook level makes an impression (to me) that there is problem with the whole notebook and after restart I need to re-run the entire notebook. |
|
Have modified logic to show restart button only there is "timed out" or "thrift" related exception. |
c3f4fae to
97b33f1
Compare
|
@prabhjyotsingh rebase |
19036cd to
97b33f1
Compare
# Conflicts: # zeppelin-web/src/app/notebook/paragraph/paragraph.html
# Conflicts: # zeppelin-web/src/app/notebook/paragraph/paragraph-results.html
|
Rebased with master. |
|
Could you please rebase again. |
# Conflicts: # zeppelin-web/src/app/interpreter/interpreter.controller.js # zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
|
Rebased with master. |
|
There is a few values or function, that seems out of place to me, for example: However, for the |
|
@corneadoug Yes, I did have a thought about of having For |
|
We can keep it like that for now |
|
I guess from the usability point of view, would it be confusing - because restarting interpreter at a particular paragraph, but all local variables would be cleared right? The user would need restart running from the top? And not just re-run this paragraph? |
|
@felixcheung I know it can be confusing (or ambiguous if run all was used), and yes I agree if restart, it may clear local variables depending upon interpreter (in case of spark yes). So, will it make sense if we alter this message https://github.com/apache/incubator-zeppelin/pull/480/files#diff-52fa6628f0b6793d22ffe1f3e4763635R2110 |
|
@prabhjyotsingh probably - we could say 'restart this interpreter X - note that all interpreter states and local variables will be reset' or similar. Would be good to name the interpreter too, to be clear. |
|
@felixcheung Sure, that's definitely a better idea, implemented that. |
338791d to
0dfe6d9
Compare
|
@Leemoonsoo @corneadoug any more thought on this? |
|
I still think there should be better place to put "interpreter restart" button, than the inside of paragraph. Another thing is, how it detects the error. What do you think?? |
|
agreed, and "except" would be rather common. |
|
Sorry, The only problem overall would be the timing of those errors (in case you already closed the modal or restarted the interpreter) |

In case of operation timeout, or any event in which user might think a restart to interpreter might fix the error in paragraph. A shortcut to restart that specific interpreter from the console, without going to the setting menu.