-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-4763]. Use isolated interpreter for cron note job #3765
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
|
|
||
| private String user; | ||
| private String noteId; | ||
| private boolean inCronMode; |
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.
You should add final, because you have no setter.
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.
Good catch,will fix it.
| } | ||
|
|
||
| private String getInterpreterGroupId(String user, String noteId) { | ||
| private static DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH-mm-ss"); |
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 also be an candidate for the final keyword.
|
LGTM. Can you solve the merge conflict in |
a5f2ec5 to
39147c3
Compare
### What is this PR for? This PR is to use isolated interpreter for cron note job. Cron job is for production job, so we should use dedicated interpreter for it instead of using shared interpreter with other notes or users. Currently interpreter binding mode is determined by note or users (scoped or isolated), This PR introduce `ExecutionContext` which include other factors (isCronMode) to determine how we create interpreters. ### What type of PR is it? [Feature] ### Todos * [ ] - Task ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-4763 ### How should this be tested? * Unit test is updated, and manually tested ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jeff Zhang <[email protected]> Closes #3765 from zjffdu/ZEPPELIN-4763 and squashes the following commits: 39147c3 [Jeff Zhang] address comment 7bc690d [Jeff Zhang] [ZEPPELIN-4763]. Use isolated interpreter for cron note job (cherry picked from commit cd8a704) Signed-off-by: Jeff Zhang <[email protected]>
What is this PR for?
This PR is to use isolated interpreter for cron note job. Cron job is for production job, so we should use dedicated interpreter for it instead of using shared interpreter with other notes or users. Currently interpreter binding mode is determined by note or users (scoped or isolated), This PR introduce
ExecutionContextwhich include other factors (isCronMode) to determine how we create interpreters.What type of PR is it?
[Feature]
Todos
What is the Jira issue?
How should this be tested?
Screenshots (if appropriate)
Questions: