-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-905] Fix import notebook with error result #1043
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
|
@swkimme @Leemoonsoo Ready for review |
|
Looks good to me 2 CI failures seems un-related (not sure if it's been taken care of somewhere) 12 |
| newParagraph.setReturn(result, null); | ||
| } catch (Exception e) { | ||
| // 'result' part of Note consists of exception, instead of actual interpreter results | ||
| logger.warn("Paragraph " + srcParagraph.getId() + " has a result with exception. " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a logger.error and re-throw the exception?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my understanding, if we re-throw error, import/clone notebook with Object result(for example String) other than InterpreterResult will fail as current master is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixcheung good question, but I think this just happens to be an exception here and it does not represent an error condition in our logic, as it's fine for current notebook structure to have paragraph with an exception stack trace in the output.
|
I think we should merge it ASAP as per ZEPPELIN-889 this blocks us from makeing a release. Any 👍 or 👎 ? |
|
@bzz Let's merge this one 👍 |
|
LGTM |
|
Merging it into master and branch-0.6 if there is no more discussion |
### What is this PR for? This PR is fixing import/clone notebook with error result. This PR adds test based on #933. > Note: This issue is one of the [blockers](https://issues.apache.org/jira/browse/ZEPPELIN-889) of 0.6.0 release so should be merged into branch-0.6 before release. ### What type of PR is it? Bug Fix ### What is the Jira issue? [ZEPPELIN-905](https://issues.apache.org/jira/browse/ZEPPELIN-905) ### How should this be tested? When you try to import or clone notebook with error result, it should work. ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Kevin Kim <[email protected]> Author: Mina Lee <[email protected]> Closes #1043 from minahlee/ZEPPELIN-905 and squashes the following commits: 69b8c02 [Mina Lee] Add test for clone notebook with String type result e7af919 [Kevin Kim] stylish code 7bf5d01 [Kevin Kim] log info -> warn, add message d4f6699 [Kevin Kim] log exception 32949bc [Kevin Kim] trigger CI build 803e08a [Kevin Kim] revert implementation c13293f [Kevin Kim] fix test, better implementation 1e45a9e [Kevin Kim] [ZEPPELIN-905] add test a4188be [Kevin Kim] [ZEPPELIN-905] fix failed notebook import bug (cherry picked from commit 50db175) Signed-off-by: Mina Lee <[email protected]>
### What is this PR for? Hotfix for compile error of master, branch-0.6 after merging #1043 Author: Mina Lee <[email protected]> Closes #1070 from minahlee/hotfix/compile_error and squashes the following commits: b0d5a6b [Mina Lee] Fix compile error after merging #1043
### What is this PR for? Hotfix for compile error of master, branch-0.6 after merging #1043 Author: Mina Lee <[email protected]> Closes #1070 from minahlee/hotfix/compile_error and squashes the following commits: b0d5a6b [Mina Lee] Fix compile error after merging #1043 (cherry picked from commit 83602f5) Signed-off-by: Mina Lee <[email protected]>
What is this PR for?
This PR is fixing import/clone notebook with error result. This PR adds test based on #933.
What type of PR is it?
Bug Fix
What is the Jira issue?
ZEPPELIN-905
How should this be tested?
When you try to import or clone notebook with error result, it should work.
Questions: