[ZEPPELIN-6237] Add serviceLocator shutdown when server is close#4965
Open
proceane wants to merge 2 commits into
Open
[ZEPPELIN-6237] Add serviceLocator shutdown when server is close#4965proceane wants to merge 2 commits into
proceane wants to merge 2 commits into
Conversation
941e8a3 to
797adb9
Compare
Contributor
|
This pull request is a workaround for me, because the ServiceLocator should actually be executed when Zeppelin is shut down. Somewhere here should be Unfortunately, my efforts failed because of the recovery tests. In my opinion, the |
Reamer
reviewed
Jul 16, 2025
| if (sharedServiceLocator != null) { | ||
| if (!zConf.isRecoveryEnabled()) { | ||
| sharedServiceLocator.getService(InterpreterSettingManager.class).close(); | ||
| sharedServiceLocator.shutdown(); |
Contributor
There was a problem hiding this comment.
Yes, this is the simple variant, but it actually belongs outside the ‘if’ statement.
1 task
ParkGyeongTae
pushed a commit
that referenced
this pull request
Sep 6, 2025
### 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 <gyeongtae@apache.org>
ParkGyeongTae
pushed a commit
that referenced
this pull request
Sep 6, 2025
### 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 <gyeongtae@apache.org> (cherry picked from commit 078b754) Signed-off-by: ParkGyeongTae <gyeongtae@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: