[ZEPPELIN-6416] Fix zeppelin-interpreter-shaded leak via zeppelin-jupyter-interpreter scope #5246
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 566 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.379
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5246"
general
weight: 0.35
ParkGyeongTae
What is this PR for?
Fixes a regression that breaks all Selenium integration tests in
zeppelin-integration(InterpreterIT,AuthenticationIT,ZeppelinIT,InterpreterModeActionsIT,SparkParagraphIT,PersonalizeActionsIT,ParagraphActionsIT) on master since the [ZEPPELIN-6355] zengine→server merge. They abort duringMiniZeppelinServerstartup with:Scope of impact
CI:
frontend.ymlselenium IT job has been red on every master push since 2026-05-05, blocking PR merges.Runtime: no production impact. The Zeppelin distribution does not ship
zeppelin-interpreter-shaded.jaron the server JVM classpath; the two-JVM isolation introduced by [ZEPPELIN-3689] still holds for deployed installations. The leak is confined tozeppelin-integration's test classpath.Root cause
zeppelin-jupyter-interpreter/pom.xmlre-declared its dependency onzeppelin-interpreter-shadedwithout scope, silently overriding the parent's<scope>provided</scope>and downgrading it to compile. That made the shaded jar transitive to anyone depending onzeppelin-jupyter-interpreter— in particularspark-interpreter(becauseIPySparkInterpreterextendsIPythonInterpreterwhich extendsJupyterKernelInterpreter), and onward intozeppelin-integration's test classpath via<dependency>spark-interpreter</dependency>.Both unshaded
zeppelin-interpreter.jarandzeppelin-interpreter-shaded.jarend up in the same test JVM. Because the shade plugin keepsorg.apache.zeppelin.dep.class names un-relocated (per<exclude>org/apache/zeppelin/</exclude>) but rewrites their internalorg.eclipse.aether.references toshaded.org.apache.zeppelin.org.eclipse.aether., both jars contain identically-namedBooter/Repository/DependencyResolverclasses that disagree on theRemoteRepositorytype. Whichever the classloader picks first wins; post-merge the shaded variant wins, sodependencyResolver.getRepos()returns shadedRemoteRepositoryinstances which fail to cast to the unshaded type expected byInterpreterSettingManager.The scope-omission has been latent since 2019-12 ([ZEPPELIN-4497]). The [ZEPPELIN-6355] merge changed the dependency-resolution order in
zeppelin-integration's test classpath and exposed it.What type of PR is it?
Bug Fix
Todos
[x] Drop the redundant
zeppelin-interpreter-shadedredeclaration inzeppelin-jupyter-interpreter/pom.xmlso the parent'sprovidedapplies[x] Add
maven-enforcer-pluginbannedDependenciesrule onzeppelin-serverandzeppelin-integrationto catch any future leak[x] Verify
mvn dependency:treeis clean forzeppelin-serverandzeppelin-integration[x] Verify the enforcer rule fails as expected when the leak is reintroduced (negative test)
[ ] Verify
frontend.ymlselenium IT goes green on this PRWhat is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6416 — this PR
https://issues.apache.org/jira/browse/ZEPPELIN-6417 — follow-up: extract
zeppelin-jupyter-kernel-clientlibrary so interpreter modules never depend on the%jupytermagic interpreter artifact directly (structural decoupling)How should this be tested?
Screenshots (if appropriate)
N/A
Questions
Does the license files need to update? No — pom-only change.
Is there breaking changes for older versions? No.