-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-544 ] After the restart when setting bug fixes interpreters note paragraphs state. #581
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
ZEPPELIN-544 ] After the restart when setting bug fixes interpreters note paragraphs state. #581
Conversation
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.
It would be better to refactor setPropertyAndRestart() and restart() to remove duplication and prevent diverged issue like this.
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.
@HeartSaVioR Okay, I will attempt to code refactoring.
|
Great for finding missed spot! |
|
@HeartSaVioR Thank you for Feedback. have a nice day! |
|
Minor: How about extracting whole synchronized block to new private method? Actually setPropertyAndRestart() and restart() takes same logic except setting additional parameter and calling saveToFile(). setPropertyAndRestart() can call saveToFile() safely when new method is executed without InterpreterException. So new private method doesn't need to take care about safeToFile(). Next concern is that how we can unify logic whether two parameters are presented or not. |
|
@HeartSaVioR |
|
@cloverhearts OK, Don't worry. I'll address it to another issue. :) Happy new year! |
|
@HeartSaVioR Happy new year, HeartSaVioR! |
|
Forgot to say LGTM. :) |
|
LGTM and merge if there're no more discussions |
What is this PR for?
Restful api - call upon the setting / interpreter id type,
The problem occurs in the status of running Paragraphs.
What type of PR is it?
Bug Fix
Todos
Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-544
How should this be tested?
Paragraphs running after interpreter config change, save -> click okay on restart dialog
Screenshots (if appropriate)
before
after
Questions: