-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-6237] Add serviceLocator shutdown when server is close #4965
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
base: master
Are you sure you want to change the base?
Conversation
941e8a3 to
797adb9
Compare
|
This pull request is a workaround for me, because the ServiceLocator should actually be executed when Zeppelin is shut down. zeppelin/zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java Lines 357 to 377 in d774044
Somewhere here should be Unfortunately, my efforts failed because of the recovery tests. In my opinion, the |
| if (sharedServiceLocator != null) { | ||
| if (!zConf.isRecoveryEnabled()) { | ||
| sharedServiceLocator.getService(InterpreterSettingManager.class).close(); | ||
| sharedServiceLocator.shutdown(); |
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.
Yes, this is the simple variant, but it actually belongs outside the ‘if’ statement.
### What is this PR for? This PR was created to prevent an error that occurs in the `InterpreterSetting.getInterpreterGroup` method when `groupId` is null and is retrieved from the Set. Normally, the groupId parameter does not seem to be passed as null. I found it when tested service shutdown(#4965). ### What type of PR is it? Improvement ### Todos * [x] - Add null check condition ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-6282 ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5026 from proceane/feature/ZEPPELIN-6282. Signed-off-by: ParkGyeongTae <[email protected]>
### What is this PR for? This PR was created to prevent an error that occurs in the `InterpreterSetting.getInterpreterGroup` method when `groupId` is null and is retrieved from the Set. Normally, the groupId parameter does not seem to be passed as null. I found it when tested service shutdown(#4965). ### What type of PR is it? Improvement ### Todos * [x] - Add null check condition ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-6282 ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #5026 from proceane/feature/ZEPPELIN-6282. Signed-off-by: ParkGyeongTae <[email protected]> (cherry picked from commit 078b754) Signed-off-by: ParkGyeongTae <[email protected]>
What is this PR for?
In the
zeppelin-server/restmodule, it was observed that when running multiple tests together, configuration values of notebooks used in previous tests remain.To address this, code has been added to shutdown
serviceLocatorwhen the test finishes and the server is stopped.What type of PR is it?
Bug Fix
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6237
How should this be tested?
zeppelin-server/restmodule, run test.Screenshots (if appropriate)
Questions: