← Back to Pull requests

[ZEPPELIN-6400] Remove ZeppelinConfiguration dependency from zeppelin-interpreter module #5167

Closed
unknown closed this pull request without merging on Mar 17, 2026 05:12 UTC
View on GitHub
unknown unknown commented on Mar 06, 2026 08:49 UTC
Author

Summary

  • Move ZeppelinConfiguration from zeppelin-interpreter to zeppelin-zengine so 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.

  • Replace ZeppelinConfiguration usage in zeppelin-interpreter with Properties-based configuration across InterpreterLauncher, LifecycleManager, RecoveryStorage, DependencyResolver, and all launcher plugins (Docker, K8s, YARN, Flink).

  • Update callers in zeppelin-zengine, zeppelin-server, flink, and markdown interpreter modules.

  • Fix TimeoutLifecycleManager to parse time unit suffixes (e.g., "10s", "1000ms") by adding parseTimeValue(). Previously, Long.parseLong("10s") threw NumberFormatException, causing the TimeoutLifecycleManagerTest.testTimeout_2 to enter an infinite loop and hang CI for 6 hours.

  • Fix flaky PersonalizeActionsIT.testGraphAction Selenium test by using clickAndWait() instead of clickableWait().click(), allowing the UI to update before assertion.
  • Motivation

    ZeppelinConfiguration in zeppelin-interpreter gets 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 to zeppelin-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) | Remove ZeppelinConfiguration imports; use Properties for config |
    | InterpreterLauncher | ZeppelinConfiguration zConf → Properties zProperties |
    | LifecycleManager / RecoveryStorage | Constructor takes Properties instead of ZeppelinConfiguration |
    | TimeoutLifecycleManager | Add parseTimeValue() to handle time unit suffixes ("10s", "1000ms") |
    | DependencyResolver | Accept individual config values instead of ZeppelinConfiguration |
    | Launcher plugins (7 files) | Updated to Properties-based API |
    | zeppelin-zengine | PluginManager passes derived values (absolute paths) via Properties |
    | ZeppelinConfiguration.java | Moved from zeppelin-interpreter → zeppelin-zengine |
    | PersonalizeActionsIT | Fix flaky testGraphAction by waiting for UI update after click |

    Future Work

    Some logic was duplicated during this refactoring to keep zeppelin-interpreter independent of ZeppelinConfiguration:

  • TimeoutLifecycleManager.parseTimeValue() duplicates ZeppelinConfiguration.timeUnitToMill() — both parse time strings like "10s" or "1000ms" via Duration.parse("PT" + value). A shared utility in zeppelin-common could consolidate this in the future.

  • Config key strings (e.g., "zeppelin.interpreter.lifecyclemanager.timeout.threshold") are now hardcoded as plain strings in zeppelin-interpreter rather than referencing ConfVars enum constants. If config key management becomes an issue, a lightweight key constants class could be introduced.
  • Test Plan

  • CI: core.yml - Core module tests (including TimeoutLifecycleManagerTest)

  • CI: core.yml - Interpreter tests (Spark, Flink)

  • CI: frontend.yml - E2E tests (Playwright + Selenium)

  • CI: quick.yml - RAT license check

  • Verify shaded JAR does not contain ZeppelinConfiguration
  • Diff: 452 lines (+339 / -113) across 5 files Reviewer: Reamer Review duration: 15623m
    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
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68.6% (HIGH) · Higher = larger blast radius
    68.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.1% · Safe to merge
    27.1%