[ZEPPELIN-6400] Remove ZeppelinConfiguration dependency from zeppelin-interpreter module #5167
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.69) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 452 lines diff across 5 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.366
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #5167"
general
weight: 0.35
Reamer
Summary
ZeppelinConfigurationfromzeppelin-interpretertozeppelin-zengineso it is no longer included in the shaded interpreter JAR. This prevents the Maven shade plugin from corrupting config string literals, which caused classpath-order-dependent configuration loading failures.ZeppelinConfigurationusage inzeppelin-interpreterwithProperties-based configuration acrossInterpreterLauncher,LifecycleManager,RecoveryStorage,DependencyResolver, and all launcher plugins (Docker, K8s, YARN, Flink).zeppelin-zengine,zeppelin-server,flink, andmarkdowninterpreter modules.TimeoutLifecycleManagerto parse time unit suffixes (e.g.,"10s","1000ms") by addingparseTimeValue(). Previously,Long.parseLong("10s")threwNumberFormatException, causing theTimeoutLifecycleManagerTest.testTimeout_2to enter an infinite loop and hang CI for 6 hours.PersonalizeActionsIT.testGraphActionSelenium test by usingclickAndWait()instead ofclickableWait().click(), allowing the UI to update before assertion.Motivation
ZeppelinConfigurationinzeppelin-interpretergets processed by the Maven shade plugin, which corrupts string literals (e.g.,org.apache.zeppelin→unshaded.org.apache.zeppelin). This causes config keys to mismatch at runtime depending on classpath ordering. Moving it tozeppelin-zengine(which is not shaded) permanently eliminates this class of bugs.As discussed by the community: "ZeppelinConfiguration belongs to the Zeppelin server, and the Zeppelin interpreter should really only work on a HashMap with ConfigKey and ConfigValue."
Changes
| Area | Change |
|------|--------|
|
zeppelin-interpreter(core) | RemoveZeppelinConfigurationimports; usePropertiesfor config ||
InterpreterLauncher|ZeppelinConfiguration zConf→Properties zProperties||
LifecycleManager/RecoveryStorage| Constructor takesPropertiesinstead ofZeppelinConfiguration||
TimeoutLifecycleManager| AddparseTimeValue()to handle time unit suffixes ("10s","1000ms") ||
DependencyResolver| Accept individual config values instead ofZeppelinConfiguration|| Launcher plugins (7 files) | Updated to
Properties-based API ||
zeppelin-zengine|PluginManagerpasses derived values (absolute paths) via Properties ||
ZeppelinConfiguration.java| Moved fromzeppelin-interpreter→zeppelin-zengine||
PersonalizeActionsIT| Fix flakytestGraphActionby waiting for UI update after click |Future Work
Some logic was duplicated during this refactoring to keep
zeppelin-interpreterindependent ofZeppelinConfiguration:TimeoutLifecycleManager.parseTimeValue()duplicatesZeppelinConfiguration.timeUnitToMill()— both parse time strings like"10s"or"1000ms"viaDuration.parse("PT" + value). A shared utility inzeppelin-commoncould consolidate this in the future."zeppelin.interpreter.lifecyclemanager.timeout.threshold") are now hardcoded as plain strings inzeppelin-interpreterrather than referencingConfVarsenum constants. If config key management becomes an issue, a lightweight key constants class could be introduced.Test Plan
core.yml- Core module tests (includingTimeoutLifecycleManagerTest)core.yml- Interpreter tests (Spark, Flink)frontend.yml- E2E tests (Playwright + Selenium)quick.yml- RAT license checkZeppelinConfiguration