Repository navigation
Conversation
A SeaTunnel job moves data between catalogs, but nothing in SeaTunnel tells a
metadata system what a job read and what it wrote. This adds the
engine-independent half of table-level lineage reporting: the module both
engines call, and the option contract users configure. The Zeta and Flink call
sites follow separately.
seatunnel-lineage carries the lineage value objects, the per-connector dataset
naming rules, per-option configuration resolution, and a LineageBackend SPI. It
declares no dependencies, which is what lets the same classes later be shaded
into an artifact placed on a Flink JobManager's parent class loader.
seatunnel-lineage-openlineage carries the OpenLineage RunEvent model and an
HTTP transport, discovered through the SPI as openlineage_transport = http.
SeaTunnel source never imports Jackson here: events are rendered by
OpenLineageClientUtils, so the unshaded Jackson the model requires stays inside
that dependency and the shade gate is satisfied by construction.
Options are all openlineage_*, resolved per option with the precedence
env {} > process environment > cluster configuration > default.
openlineage_enabled defaults to false, and when it is false nothing else is
parsed, no thread is started and no request is made. openlineage_auth_token is
the exception to that precedence: it resolves from the environment variable or
cluster configuration only, and a token found in a job env block is rejected at
parse time so it can never be persisted into job configuration or serialized
into an engine's job graph.
Claude-Session: https://claude.ai/code/session_013d8exNvDHnMoeaotcFdkhE
Adds the Zeta call site for OpenLineage lineage reporting. Three things are reported, each from where the information actually exists. Lifecycle is reported beside the master's job-state transition. Every Zeta submission mode -- local, cluster synchronous, cluster async/detached, and REST -- converges on the master, so one call site covers all four; a client-side reporter would report nothing for the two detached ones. FINISHED and SAVEPOINT_DONE map to COMPLETE, CANCELED to ABORT, every other terminal state to FAIL. A restart is a new run. A running streaming job is kept alive on the receiver by a periodic RUNNING reported from the checkpoint completion callback. Receivers decide a run was abandoned from how long it has been silent, so without this a healthy long-running job loses its lineage from the current graph. Zeta already has a periodic callback, so no timer is introduced. Output statistics are read from the historical job metrics -- the task-group context is cleared as soon as it has been stored -- preferring committed counters and falling back to attempted write counters. Which one was used is recorded in the event, because a consumer that cannot tell them apart is being told committed rows when it may be seeing attempted ones. No lineage send runs on an engine thread: sends are handed to an executor, so neither a job state transition nor a checkpoint completion can be delayed by an unreachable receiver, and every callback is wrapped so a lineage failure is a warning rather than a job failure. SourceAction and SinkAction gain the resolved datasets. Both now declare the serialVersionUID they had been serializing with implicitly, so a savepoint written by an earlier release still deserializes onto the new class; the added field arrives as null and is read as empty. Claude-Session: https://claude.ai/code/session_013d8exNvDHnMoeaotcFdkhE
DanielLeens
left a comment
There was a problem hiding this comment.
What Problem Does This PR Solve?
Today a Zeta job is a black box to any external data-catalog/lineage system: nobody outside the cluster can answer "which tables did job X read and write, and did it actually finish?" without polling the SeaTunnel REST API and reverse-engineering the config. This PR (stacked on #12208's generic seatunnel-lineage module) wires a Zeta-specific ZetaLineageReporter into JobMaster / PhysicalPlan / CheckpointCoordinator so that, when openlineage_enabled = true, the Zeta master emits OpenLineage START / throttled RUNNING heartbeat / terminal COMPLETE/FAIL/ABORT events per sink, with real dataset names extracted from the job's own source/sink connector options. The feature is opt-in and off by default, so an unmodified job's execution, checkpointing, and scheduling behavior is unchanged.
One concrete example: a FakeSource -> Doris batch job with openlineage_enabled = true and openlineage_url pointing at a Marquez/OpenLineage receiver now produces a START event when the job enters RUNNING, then a COMPLETE event carrying outputStatistics.rowCount when the job finishes — visible in the receiver's UI without touching SeaTunnel's own API.
Note for context: this is one of three stacked PRs from the same author (#12208 core module, #12209 this Zeta integration, #12210 Flink integration). This review covers only #12209's own commits (git log feature/openlineage-core..feature/openlineage-zeta), i.e. everything under seatunnel-engine/**, the EnvCommonOptions/EnvOptionRule additions, and the two docs/**/introduction/concepts/lineage.md + hybrid-cluster-deployment.md doc changes. The seatunnel-lineage / seatunnel-lineage-openlineage module internals that also show up in this diff (because the branch is stacked) are #12208's own code and are not re-reviewed here.
1. Code Change Review
1.1 Core Logic Analysis
Where this hooks into the Zeta job lifecycle (traced against dev, not just the diff):
PhysicalPlan.updateJobState(targetState) [synchronized on PhysicalPlan instance]
-> reportJobStateEvent(targetState) (already existed, now also calls lineage)
-> ZetaLineageReporter.reportJobState(jobMaster, status)
- builds LineageEvent list on the CALLING thread (DAG walk + local metrics read)
- jobMaster.submitLineageEmission(() -> emit(...)) // enqueue only, returns fast
CheckpointCoordinator.completePendingCheckpoint(...) [synchronized method]
-> checkpointManager.reportLineageHeartbeat()
-> jobMaster.reportLineageHeartbeat()
-> ZetaLineageReporter.reportHeartbeat(jobMaster)
- cheap throttle check (AtomicLong CAS) on the CALLING thread
- jobMaster.submitLineageEmission(() -> { build events + emit }) // deferred
JobMaster.submitLineageEmission(Runnable)
- enqueues to a per-JobMaster ArrayDeque under a private lock
- if no drain already running, executorService.execute(this::drainLineageEmissions)
- executorService here is CoordinatorService's shared "seatunnel-coordinator-service"
ThreadPoolExecutor (core=10, max=Integer.MAX_VALUE by default, SynchronousQueue-backed),
i.e. the SAME pool CoordinatorService uses for PlanUtils.fromLogicalDAG(...) and other
checkpoint/scheduling work for every job in the cluster (verified: JobMaster.java is
constructed with `this.executorService` from CoordinatorService.createCoordinatorExecutor()
at CoordinatorService.java, used again at JobMaster construction and CheckpointManager
construction).
drainLineageEmissions()
- single-threaded drain per job, runs queued Runnables in order, each wrapped in its own
try/catch(Throwable) so one bad emission does not stop the next one
LineageRuntime.emit(config, event) [in #12208's module, called from the emission Runnable]
- performs the actual blocking HTTP call, worst case timeoutMs * (retryTimes + 1)
(10000ms * 4 = 40s with defaults)
Key findings:
- The actual network call is correctly kept off the lock-holding thread.
completePendingCheckpointissynchronized, andPhysicalPlan.updateJobStateissynchronized; the PR's own code comments onJobMaster.submitLineageEmissionandZetaLineageReporter.reportJobState/reportHeartbeatexplicitly reason about this, and I confirmed by tracing both call sites that only cheap work (DAG walk, a localIMapread viaJobHistoryService.getJobMetricsfor terminal events, or anAtomicLongCAS for the heartbeat throttle) happens before the HTTP-performingRunnableis handed off.getCurrJobMetrics()(the one call that does an RPC to every worker, perJobMaster.javaaroundNodeEngineUtil.sendOperationToMemberNode) is only invoked for theRUNNING/heartbeat path, and it happens inside the deferredRunnable, not beforesubmitLineageEmissionreturns — so it never runs whilecompletePendingCheckpoint's lock is held either. - Events are drained in submission order per job, via a single-flight drain flag guarded by
lineageEmissionLock, which is the right call: OpenLineage receivers key run state off event ordering (aCOMPLETEthat overtakes its ownSTARTcorrupts the run in the receiver).ZetaLineageReporterTest.shouldRunLineageEmissionsOffTheCallerThreadInSubmissionOrderverifies this directly, including that one throwing emission doesn't break the chain for the next one. - Every dispatch boundary is defensively wrapped.
PhysicalPlan.reportJobStateEventcatchesThrowablearound the newZetaLineageReporter.reportJobStatecall;reportHeartbeat, its submitted lambda, anddrainLineageEmissions's per-emission execution all catchThrowable(not justException) and log-and-continue. This directly satisfies "must not throw/crash the master on a malformed table reference" — a bad connector config that makesLineageDatasetFactory(in #12208, not re-reviewed here) misbehave at reporting time cannot propagate into the state machine or checkpoint coordinator. SourceAction/SinkActiongained alineageDatasetsfield without breaking savepoint/checkpoint restore compatibility. Both classes previously had no declaredserialVersionUID(so Java computed one from class structure); the PR pins the pre-change computed values as literalserialVersionUIDconstants and adds a defensivenull-normalizing getter, so a stream serialized by an older build (nolineageDatasetsfield at all) still deserializes under the same UID with the new field defaulting tonull-> normalized toCollections.emptyList()by the getter. This is exactly right for Java's default serialization semantics (field initializers do not run on deserialization for aSerializableclass), and it's the one compatibility trap in this PR that would have been very easy to get wrong silently.SourceSinkActionCompatibilityTestpins and tests exactly this.- The
MultipleTableJobConfigParserchange deliberately does not gate dataset extraction behindopenlineage_enabled, because that parser also runs client-side inClientJobExecutionEnvironmentwhere the master's cluster-levelseatunnel.yamlisn't visible — gating there would silently disable lineage for jobs that only enabled it at the cluster level. The extraction itself is a pure, cheap map lookup at job-submission time (not the runtime hot path), so this tradeoff is sound.
1.2 Compatibility Impact
Fully compatible.
- New job option (
openlineage_*),default=false; when disabled,ZetaLineageReporter.reportJobState/reportHeartbeatboth return immediately afterconfig.enabled()is checked, before any DAG walk, metrics read, or queue submission — so a job that doesn't opt in gets zero extra behavior, matching the PR's own doc claim ("no lineage network call or background thread when disabled"). - New cluster-level
seatunnel.yamlengine.openlineageblock; parsed only when theopenlineagenode is present (YamlSeaTunnelDomConfigProcessor), no impact on clusters that don't add it. SourceAction/SinkActioncheckpoint/savepoint serialization compatibility is explicitly handled (see 1.1) and tested — a savepoint taken on a pre-PR build restores cleanly on a build that includes this PR.- No existing protocol, RPC, or IMap schema is changed.
CheckpointManager.reportLineageHeartbeat()is a new method, not a change to an existing one.
1.3 Performance / Side-Effect Analysis
When disabled (the default): negligible — one extra Option lookup on job submission (LineageConfig.rejectJobAuthToken) and one cheap enabled() check per checkpoint completion / state transition.
When enabled, two things are worth flagging for a cluster running at the throughput this system is expected to handle:
- Issue 1 below: lineage emission reuses the cluster-wide
CoordinatorServiceexecutor, which is shared with core scheduling work for every job, not a dedicated pool. - Issue 2 below: the per-job pending-emission queue (
JobMaster.lineageEmissions) has no bound.
Both are detailed in 1.4 since they're primarily correctness-of-isolation issues, not raw CPU/memory concerns — the DAG walk and dataset extraction themselves are O(vertices) and run once per event, which is fine.
1.4 Error Handling and Logging
Logging is good throughout: every catch site logs at warning with the job ID and the underlying Throwable, and ZetaLineageReporter.events()/sinkDatasets() explicitly log at info when a sink resolves to zero lineage datasets, specifically so a silently-empty-lineage job doesn't look identical to a working one with no lineage yet (nice touch — this is exactly the kind of "false success" the CLAUDE.md error-handling rule warns about, and this PR gets it right rather than swallowing the gap).
Issue 1 — High: lineage HTTP emission runs on the shared, effectively-unbounded CoordinatorService executor, not an isolated pool.
- Location:
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobMaster.java,submitLineageEmission/drainLineageEmissions(new methods,executorServicefield). - Problem:
submitLineageEmissioncallsexecutorService.execute(this::drainLineageEmissions).executorServiceis the field passed intoJobMaster's constructor fromCoordinatorService.createCoordinatorExecutor()— the sameThreadPoolExecutor(core-thread-numdefault10,max-thread-numdefaultInteger.MAX_VALUE,SynchronousQueue-backed, so once all live threads are busy a new thread is spawned rather than the task waiting in a queue) thatCoordinatorServicealso uses forPlanUtils.fromLogicalDAG(...)and other master-wide scheduling work across every job in the cluster, and thatCheckpointManagerreuses for its own async operations. - Runtime flow this actually reaches: this is on the normal enabled-feature path, not a boundary/recovery path — every checkpoint completion and every job state transition of a lineage-enabled job goes through here.
- Potential risk: a drain task blocks on
LineageRuntime.emit(...)'s HTTP call for up totimeoutMs * (retryTimes + 1)(40s with defaults) per event. Withmax-thread-numeffectively unbounded and aSynchronousQueuehandoff policy, a lineage receiver that is slow-but-not-instantly-failing (a realistic failure mode — an overloaded Marquez instance, a network path with high latency, a receiver mid-GC-pause) combined with many concurrently checkpoint-completing or state-transitioning lineage-enabled jobs will make the coordinator pool spawn one live thread per concurrent in-flight emission, all blocked on network I/O, for up to 40 seconds each. At the production scale this system is expected to run at (many concurrently streaming jobs, each checkpointing independently), this is unbounded native-thread growth on the master JVM, competing for the exact thread pool thatPlanUtils.fromLogicalDAGand checkpoint-manager operations for every other job — including ones that never enabled lineage — depend on. This is a resource-isolation failure: a degraded external system that only one opted-in job talks to can degrade scheduling for the whole cluster. - Best improvement:
- Option A (recommended, small change): give lineage emission its own small, bounded
ThreadPoolExecutor(e.g. 1–2 threads, fixed size, with a bounded queue and a caller-runs-adjacent-but-log-and-drop rejection policy mirroring the existingRejectedExecutionExceptionhandling), owned byJobMasteror better byCoordinatorServiceand shared read-only by allJobMasters, so a stuck lineage receiver can only ever hold up lineage reporting, neverPlanUtils.fromLogicalDAGor checkpoint-manager scheduling. - Option B: keep the shared executor but cap the number of concurrently in-flight lineage emissions cluster-wide (e.g. a
Semaphore), so a stuck receiver still can't unboundedly grow the thread count — this is a smaller diff than Option A but doesn't fully isolate the blast radius from other master work.
- Option A (recommended, small change): give lineage emission its own small, bounded
- Severity: High (real, opt-in only, but affects the whole master when triggered — not just the reporting job).
Issue 2 — Medium: unbounded per-job lineage emission queue under sustained backlog.
- Location:
JobMaster.java,lineageEmissionsfield (private final Deque<Runnable> lineageEmissions = new ArrayDeque<>();). - Problem: nothing caps the size of this deque. Under default settings (
openlineage_heartbeat_min_interval_ms = 3600000) the production rate is low enough (at most one heartbeat/hour plus terminal events) that this never matters even with the worst-case 40s drain time above. Butopenlineage_heartbeat_min_interval_mshas no enforced floor — an operator who sets it low (say, to match a short checkpoint interval for near-real-time lineage) against a receiver that is degraded-but-not-instantly-failing will produce heartbeats faster than they drain, and this queue grows without bound for the lifetime of that job. - Potential risk: sustained memory growth per affected job (bounded per-job by how long the receiver stays degraded, but with no cap it's a genuine "unbounded lineage-event queue under sustained production load" — the exact failure mode called out for this review). Combined with Issue 1, a stuck receiver is doubly bad: it both grows this queue and holds coordinator threads.
- Best improvement: Option A — cap
lineageEmissions(e.g. a small fixed bound such as 16–64) and drop the oldest/newest with awarninglog, reusing the same "dropped N lineage events" logging pattern already present for theRejectedExecutionExceptionpath. Option B — additionally clampopenlineage_heartbeat_min_interval_msto a sane minimum (e.g. a few seconds) inLineageConfigvalidation so a misconfiguration can't turn every checkpoint into a reporting attempt. - Severity: Medium (requires non-default configuration or a genuinely degraded receiver to manifest; still a real gap given the explicit "no unbounded queues" requirement for this review).
No blocking issues found in exception handling itself — swallowing is intentional and correctly scoped (best-effort lineage must never affect the data-processing job), logging is present everywhere it's swallowed, and nothing here produces a false-success signal for the job itself.
2. Code Quality Assessment
2.1 Coding Standards
Comment coverage is genuinely excellent — every new non-trivial method and field in JobMaster, ZetaLineageReporter, SourceAction/SinkAction, and CheckpointManager has a Javadoc explaining not just what it does but why (e.g. resolveLineageConfig's caching rationale, getLineageAttempt's "must be recomputable offline" constraint, sourceDatasets' explanation of why it walks LogicalDag edges instead of Action.getUpstream() because upstreams is transient). I found no new core method or non-trivial field lacking a comment. No coding-standards issue to raise here.
2.2 Test Coverage and Test Stability
Coverage is strong and specifically targets the risk areas that matter for this change: ZetaLineageReporterTest covers attempt-ID derivation (restart vs. savepoint vs. checkpoint restore), config resolution caching, current-vs-historical metrics selection, heartbeat throttling (including the "0 disables" edge case and the heartbeat-vs-terminal-event race), off-thread ordered emission with a failing-emission-doesn't-break-the-chain case, and the transient-upstreams-after-deserialization DAG-walk regression. CheckpointCoordinatorTest and LineageOptionParityTest (binding the Option declarations to the resolver's string constants, since seatunnel-lineage can't depend on seatunnel-api's Option type) round it out. SourceSinkActionCompatibilityTest pins the exact pre-PR serialVersionUID values with a clear explanation of why they can't be re-derived.
Flaky-test-risk pass: no Thread.sleep, all concurrency tests (shouldRunLineageEmissionsOffTheCallerThreadInSubmissionOrder) use CountDownLatch with bounded await(30, TimeUnit.SECONDS) timeouts and synchronized collections rather than polling or timing assumptions; no shared static state; no order-dependent assertions I could find. Rating: Stable.
2.3 Documentation Updates
docs/en and docs/zh are both updated in parallel and stay consistent with each other (I diffed them side by side). Content quality is good — it documents the precedence order for option resolution, explicitly calls out the auth-token exception, and explains real dataset-naming edge cases (template-routed sinks, Paimon catalog_name requirement, Doris port mismatch) that read like they came from actually hitting them, matching the PR description's claim of end-to-end testing against real Paimon/Doris targets.
However: this is the direct cause of the current CI failure — see the CI Diagnosis in Section 5. The two new files, docs/en/introduction/concepts/lineage.md and docs/zh/introduction/concepts/lineage.md, both include a full ASF license <!-- ... --> comment block after the YAML front matter and before the # OpenLineage Lineage Reporting / # OpenLineage 血缘上报 heading. Every sibling file in docs/en/introduction/concepts/ (e.g. schema-feature.md, connector-v2-features.md) starts directly with the # heading as the first non-frontmatter content, with no license comment at all, and the repo's own MarkdownTest.testPrimaryHeadersHaveNoTextAbove check (which explicitly skips front matter and blank lines but not HTML comments) enforces exactly that convention. This is a Low-severity, mechanical fix, but it is the one thing currently failing CI.
3. Architectural Soundness
3.1 Elegance of the Solution
Precise fix, not a workaround. The design correctly separates "build the event" (fast, can run under a lock) from "send the event" (slow, must never run under a lock), uses a per-job ordered single-flight queue to preserve OpenLineage's ordering requirement without serializing unrelated jobs against each other, and threads the checkpoint/savepoint compatibility concern through with a real regression test rather than an afterthought. The one structural gap is Issue 1 — reusing the shared coordinator executor instead of giving this feature its own isolated capacity — which is a resource-isolation oversight rather than a design flaw in the emission-ordering/locking model itself.
3.2 Maintainability
Good. The LineageOptionParityTest binding EnvCommonOptions to LineageConfig's string constants is a nice piece of maintainability insurance against exactly the kind of silent drift that a two-declarations-of-the-same-option design invites.
3.3 Extensibility
The LogicalDag-edge-walk approach to resolving source datasets for a sink is engine-agnostic in spirit (it only depends on LogicalDag, which Zeta already serializes), and the SinkAction/SourceAction dataset fields are a clean extension point other engine-side features could reuse.
3.4 Historical-Version Compatibility
Addressed correctly and explicitly tested, as detailed in 1.1/1.2 — this is the part of the PR I scrutinized hardest given the checkpoint/savepoint compatibility stakes, and it holds up.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| 1 | Lineage HTTP emission runs on the shared, effectively-unbounded CoordinatorService executor instead of an isolated pool, risking cluster-wide thread growth under a slow lineage receiver + concurrent load |
JobMaster.java — submitLineageEmission/drainLineageEmissions |
High |
| 2 | Per-job lineageEmissions queue has no size bound; can grow unbounded under sustained backlog (non-default heartbeat interval + degraded receiver) |
JobMaster.java — lineageEmissions field |
Medium |
| 3 | New lineage.md docs (en/zh) retain a license comment before the first # heading, violating this repo's doc-heading convention and currently failing CI |
docs/en/introduction/concepts/lineage.md, docs/zh/introduction/concepts/lineage.md |
Low (blocks CI) |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
-
Blockers — must be fixed:
- Issue 3 (CI failure): remove the ASF license comment block from both new
lineage.mdfiles so the first non-frontmatter line is the#heading, matching every sibling file indocs/*/introduction/concepts/. This is the only thing currently failing CI (Run / Code style->MarkdownTest.testPrimaryHeadersHaveNoTextAbove, verified against the fork's actual run at https://github.com/88fantasy/seatunnel/actions/runs/33887661141/job/101071320142 — everything downstream of it was skipped as a consequence, not independently broken). - Issue 1: isolate lineage emission from the shared
CoordinatorServiceexecutor (a small dedicated bounded pool, Option A in 1.4, is the cleanest fix) before this ships to a cluster running many concurrent lineage-enabled streaming jobs — I don't think this needs to block merge of the feature flag itself being false by default, but given the review brief for this PR is explicitly "must not leak resources under sustained production load," I'm calling it a blocker rather than a nice-to-have.
- Issue 3 (CI failure): remove the ASF license comment block from both new
-
Recommended fixes — non-blocking:
- Issue 2: bound
lineageEmissionsand/or clampopenlineage_heartbeat_min_interval_msto a sane minimum, ideally as part of the same change that addresses Issue 1.
- Issue 2: bound
Overall assessment: this is a well-engineered piece of engine-integration work — the checkpoint/savepoint serialization-compatibility handling in particular is exactly the kind of thing that's easy to get subtly wrong and this PR gets right, with a test that proves it. The core async-emission design (build-under-lock, send-off-lock, per-job ordered queue) is sound. The one real architectural gap is that it borrows capacity from the master's shared scheduling executor instead of bringing its own, which is a straightforward fix rather than a rethink. Great first contribution — welcome to the project, and thank you for the thoroughness of the tests and docs; a lot of first PRs skip exactly the compatibility test that this one got right.
No alternative implementation approach is warranted here — the queue-per-job/executor-off-lock architecture is the right shape; it just needs its own pool instead of the shared one.
- LineageRuntime.emit() now catches Throwable and logs a WARNING instead of rethrowing, so the shared seam every engine call site relies on actually honors its own "never crash the job" promise instead of depending on each future call site to guard it. The now-unused LineageReportingException is removed. - Drop the ASF license comment block from both lineage.md docs so it no longer sits above the first-level heading, which is what broke MarkdownTest.testPrimaryHeadersHaveNoTextAbove in CI. - Document the worst-case synchronous blocking bound on LineageBackend#emit so a future caller can judge whether to keep it off a latency-sensitive thread. - LineageConfig#asBoolean now rejects a value that isn't "true"/"false" instead of silently folding it into false, matching the named errors already given for malformed numeric options. Claude-Session: https://claude.ai/code/session_01Tdiiz7uC8bCGyLusPbAZMF
|
Thanks for the work here. Two things to flag together: (1) GitHub is currently reporting merge conflicts between this branch and the latest |
|
@DanielLeens I have synced this PR with Could you please re-review the updated head? Validation on this head: Spotless, affected-module verify, and 76 focused tests passed, including the initialization/failover regression. Your separate blocker concerning the shared executor and thread growth is still open; this sync does not claim to address it. The local validation above is separate from the GitHub CI results, which are still pending for the updated head. |
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for syncing with dev and for pinging me, @88fantasy. I re-reviewed the latest head (d746982c2) in full, including how you resolved the JobMaster and dependency/license conflicts. The merge resolution looks right, but the code I reviewed earlier is unchanged, so my earlier blockers are still open. Details below, with the cheapest path to green.
What Problem Does This PR Solve?
- User pain point: a Zeta job is a black box to external lineage systems; nobody outside the cluster can tell which tables it read and wrote, or whether it finished.
- Fix approach:
ZetaLineageReporter, wired intoJobMaster,PhysicalPlanandCheckpointCoordinator, emits OpenLineage START, throttled RUNNING heartbeat and terminal COMPLETE/FAIL/ABORT events per sink whenopenlineage_enabled = true. Off by default. - One-sentence summary: opt-in table-level lineage from the Zeta master.
1. Code Change Review
1.1 Core Logic Analysis
- Author code unchanged.
git range-diffof the two author commits (the stacked core commit1e2175b9eand the Zeta commit720a4133c) against the new head shows them identical. The only new commit is the merge ofdev@3ac7003fb. - Merge conflict resolution reviewed. In
JobMaster.init(...)you now set boththis.restart = restartandthis.masterFailoverRestore = restart, so the lineage attempt discriminator (getLineageAttempt()returnsrestart-<initializationTimestamp>,restore-<mode>-<ts>, ornullfor a fresh submission) and the new master-failover slot-reuse logic fromdevboth keep working. The assertions you added toJobMasterMasterFailoverResourceTest(null attempt before failover,restart-<ts>after) strengthen that test rather than weaken it. TheLICENSElist andknown-dependencies.txtkeep both sides. No problem here. - Runtime path (unchanged):
checkpoint completes / job state transitions (engine thread holding engine state)
-> ZetaLineageReporter builds the event under the lock (fast)
-> JobMaster.submitLineageEmission(Runnable)
-> lineageEmissions (ArrayDeque, no bound) JobMaster.java:1227
-> executorService.execute(this::drainLineageEmissions) JobMaster.java:1234
executorService == CoordinatorService.createCoordinatorExecutor()
(ThreadPoolExecutor, max-thread-num default Integer.MAX_VALUE, SynchronousQueue)
-> drain: LineageRuntime.emit(...) -> blocking HTTP, up to timeoutMs * (retryTimes + 1)
This is on the normal enabled-feature path, not a boundary path. I re-confirmed on this head that executorService is still the shared coordinator pool and that lineageEmissions is still unbounded.
1.2 Compatibility Impact
Fully compatible, same as before: the SourceAction/SinkAction serialization additions keep the pre-PR serialVersionUID values and are pinned by SourceSinkActionCompatibilityTest, and no RPC or IMap schema changes.
1.3 Performance / Side-Effect Analysis
Disabled: negligible. Enabled: see Issue 1 and Issue 2 below, which are unchanged from my earlier review.
1.4 Error Handling and Logging
Good: every swallow site logs a WARNING with the job id and the cause, and zero-dataset sinks are logged explicitly.
Issue 1 - High (carryover, still open): lineage HTTP emission shares the unbounded coordinator executor.
- Location:
seatunnel-engine/seatunnel-engine-server/.../master/JobMaster.java:1234(submitLineageEmission/drainLineageEmissions). - Problem: each lineage-enabled job can park one thread per concurrent in-flight emission, blocked on network I/O for up to
timeoutMs * (retryTimes + 1)(40s with defaults), in the same pool that servesPlanUtils.fromLogicalDAGand checkpoint-manager work for every job. - Risk: a slow but not instantly failing receiver combined with many concurrent checkpoints turns into unbounded thread growth on the master JVM, degrading scheduling for jobs that never enabled lineage.
- Best improvement: Option A (recommended) give lineage its own small fixed pool with a bounded queue and a log-and-drop rejection policy, owned by
CoordinatorServiceand shared by allJobMasters. Option B keep the shared pool but cap cluster-wide in-flight emissions with aSemaphore(smaller diff, weaker isolation). - Severity: High. Raised by another reviewer: No.
Issue 2 - Medium (carryover, still open, non-blocking): lineageEmissions has no size bound (JobMaster.java:194). With a low openlineage_heartbeat_min_interval_ms and a degraded receiver, heartbeats are produced faster than they drain. Cap the deque and log "dropped N lineage events", and/or clamp the heartbeat interval to a sane floor in LineageConfig.
Issue 3 - High, CI (carryover, still open): the docs fail MarkdownTest.testPrimaryHeadersHaveNoTextAbove.
- Location:
docs/en/introduction/concepts/lineage.md(and thezhfile). - Evidence: the fork's Code style job on this head fails with
The first line of the file ../docs/en/introduction/concepts/lineage.md is not a first level heading. First line content: "<!--" (line number: 5). Every other CI job was skipped as a consequence, so this head has not yet had its unit tests or ITs run at all. - Root cause and cheapest fix: this branch is stacked on the old core commit
1e2175b9e. #12208 already fixed exactly this in1f2c9928f(it removed the license comment block, and also madeLineageRuntime.emit()contain everyThrowable). Merging or rebasing onto the currentfeature/openlineage-corehead resolves the CI failure with no new edit in this PR. I checked that nothing in this PR references theLineageReportingExceptionclass that #12208 deleted, so the rebase is compile-safe on this PR's side. Until then,LineageRuntime.emit()on this head still rethrowsLineageReportingException; the Zeta call sites catch and log it, so jobs are not affected, but it is worth getting the final contract.
2. Code Quality Assessment
2.1 Coding Standards
Excellent comment coverage that explains why. No missing comments on new core methods or fields.
2.2 Test Coverage and Test Stability
Unchanged: ZetaLineageReporterTest, LineageOptionParityTest, CheckpointCoordinatorTest and SourceSinkActionCompatibilityTest cover the critical paths, with CountDownLatch and bounded awaits, no Thread.sleep. Rating: Stable. One gap that goes with Issue 1: no test asserts that lineage emission cannot starve the coordinator pool, so a fix there should add one.
2.3 Documentation Updates
docs/en and docs/zh are updated in parallel and consistent; only the license-comment structure from Issue 3 needs to change.
3. Architectural Soundness
Precise fix. The build-under-lock, send-off-lock, per-job ordered queue design is the right shape; it only needs its own bounded capacity (Issue 1). Historical-version compatibility is handled and tested.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| 1 | Lineage emission runs on the shared unbounded coordinator executor | JobMaster.java:1234 |
High |
| 3 | Docs license comment before the first heading fails MarkdownTest (fixed in #12208 1f2c9928f, this stack is based on the older core commit) |
docs/en and docs/zh introduction/concepts/lineage.md |
High (CI) |
| 2 | Unbounded lineageEmissions deque |
JobMaster.java:194 |
Medium |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers - must be fixed: Issue 3 (rebase or merge onto the current #12208 branch head) and Issue 1 (dedicated bounded pool for lineage emission, as I asked in my 2026-09-12 comment).
- Recommended fixes - non-blocking: Issue 2.
CI and merge state on this head: Code style red (Issue 3), everything downstream skipped, so please re-check unit tests and ITs after the rebase. The branch is 41 commits behind dev and GitHub reports it as mergeable; no other reviewer has left feedback on this PR. Thank you again for the thorough work on the checkpoint and savepoint compatibility handling, which is the hardest part and is in good shape. Happy to take another look once Issue 1 and the rebase land.
…ractors - Merge latest upstream/dev into feature/openlineage-core - Add OpenLineageOptionSyncTest so EnvCommonOptions keys/defaults stay aligned with LineageConfig (Issue 3) - Introduce LineageDatasetExtractor SPI (ServiceLoader) and move Paimon/Doris/JDBC parsers out of LineageDatasetFactory (Issue 4)
Load extractors via this module's class loader and skip broken providers. Document order() < 100 for named connectors; add Doris-vs-JDBC precedence and order tests. Document OptionSupport null/fallback semantics.
… error handling Address non-blocking review notes: make Doris-vs-JDBC identities diverge so a wrong extractor order fails the test, and wrap ServiceLoader hasNext() so a broken provider cannot poison class init.
Replace concrete server IPs in Doris fenodes fixtures with fe.example to match LineageDatasetNamingTest and avoid embedding real host addresses.
Align with tip 4bccb0e after the known-dependencies merge with upstream/dev. Keep both OpenLineage and Kubernetes client jars.
Give OpenLineage HTTP emission its own 2-thread, queue-64 executor on CoordinatorService so a slow receiver cannot starve PlanUtils or checkpoint scheduling. Cap each JobMaster lineage queue at 64 and refuse newest events with a warning when full.
|
Thanks @DanielLeens for the review. Addressed on tip a69148f:
Please take another look when you have a chance. CI has been re-triggered on the fork. |
Keep the Zeta OpenLineage deployment notes and the upstream dev checkpoint-monitor storage wording. The core merge already includes the SftpFileIT image tag fix from apache#13203. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for keeping the branch current, @88fantasy. Re-checked the new head 2e236b4b: compared with the head I last reviewed (d4cddb0b), the only change is a merge of the latest dev, and the PR's own net diff against dev is byte-identical (same files, same changed lines). The new head also merges the updated openlineage-core branch (#12208) into this one; the net change against dev is still the same set of files and lines.
Previous points: no source blocker was open, and none is introduced by this merge.
CI: there is still no Build run in your fork for this head, and the apache-side checks have not reported either. Could you check that GitHub Actions is enabled for your fork and trigger the Build workflow manually (Actions -> Build -> Run workflow on this branch)? I'll re-confirm as soon as a green run exists.
Branch state: ahead, ahead 39 / behind 0 of dev; no conflicts reported.
Conclusion: Ready to merge
- Blockers (non-CI): none.
- Remaining gate: CI has not run on this head.
|
Thanks @88fantasy for the summary. The follow-up plan sounds good: F4 (only advance the heartbeat throttle timestamp after a successful emit, or reset it on failure) and a typed config holder for the lineage options replacing the raw map in On the current head The remaining gate is CI: there is still no |
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks @SEZ9 for confirming that no source blocker remains and that the throttle/typed-configuration items can be tracked after merge. I agree with keeping those as the previously discussed non-blocking follow-up. Your earlier historical change request remains yours or a write-capable maintainer's to refresh or dismiss.
The CI fact cited previously has changed. On unchanged head 2e236b4bb98c8a739f4cafc6d1bb8914261a2465, fork Build 43186818685 completed successfully, and the Apache Build check is now green. My earlier pending/missing-workflow guidance is obsolete. My previous conclusion had no remaining source-side blocker. CI was previously the only remaining blocker from my side; CI is now passing, so the conclusion is being changed to approve.
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers — must be fixed: None from my existing source review or current CI. Effective maintainer review remains required; other reviewers retain control of their own outstanding review records.
- Recommended fixes — non-blocking: Earlier optional suggestions remain optional. No unrelated source change is requested to chase CI.
Comparison with dev: diverged, ahead 39 / behind 9; no conflict was reported in the comparison snapshot. Behind is metadata, not a sync request. This is a discussion and CI-gate update on an already-reviewed head, not another full source review. No local build or job was executed. Daniel has READ permission: this technical approval does not substitute for a write-capable maintainer's approval/dismissal or merge action.
|
Thanks @SEZ9. Following up on your note from Nov 12: the |
|
@88fantasy thanks for the follow-up. My own review on this PR is already an approval: on head The earlier Changes requested is not mine to clear. It belongs to the reviewer you addressed, and only that reviewer or a write-capable maintainer can refresh or dismiss it. I have read permission only, so my approval does not replace that step or the merge action. Non-blocking, to be tracked after merge:
If it is convenient, a follow-up issue linked here for these two would help keep them from getting lost. |
|
Thanks for the follow-up, @88fantasy and @SEZ9. I have no open source request on |
|
Thanks for the follow-up, @88fantasy, and for linking the green On the earlier review points, the latest automated review reports no open source request on Two things remain before the Changes requested state can be cleared:
Once the new head is conflict-free and its |
Bring in the latest apache/seatunnel dev through afae3f2 (apache#12937). Keep both the OpenLineage authenticated-receiver note and the JDBC source split-key note, and keep the lineage sidebar entry with the new Concepts docs from dev. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
Keep the Zeta OpenLineage send-budget section, the core OpenLineage section, and the JDBC source split-key note from current dev. The deployment docs merged cleanly with both the OpenLineage notes and the upstream shade wording. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks, @88fantasy. @SEZ9, this head clears the previously reported conflict. The receiver/token binding, parser guard, worker metrics deadline, retry caps and lineage-pool implementation are unchanged from the earlier head. I also checked the rebased hybrid and separated deployment sections in both languages. The replacement Build is queued.
What problem does this PR solve?
User pain. Zeta operators could not see which job inputs feed particular output tables or follow run state in an OpenLineage receiver.
Fix. Extract assets from job options, attach them to the logical DAG, and emit lifecycle events and streaming checkpoint heartbeats from the Zeta master.
Example. A streaming JDBC-to-Paimon job can publish START, a checkpoint-triggered RUNNING sample and a terminal status under the same output run identity.
1. Code changes
1.1 Core logic
Before, PhysicalPlan reported ordinary job state only. It now calls ZetaLineageReporter.reportJobState(jobMaster, jobStatus) at seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalPlan.java:451, and a successful checkpoint asks the owning JobMaster to schedule a lineage heartbeat.
Job config parser -> SourceAction/SinkAction carry connector dataset metadata
-> DAG serialization -> Zeta JobMaster reads job options and trusted limits
-> physical plan state transition builds START or terminal output events
-> completed streaming checkpoint schedules an eligible heartbeat
-> JobMaster orders lifecycle events and coalesces pending RUNNING
-> isolated coordinator lineage pool gathers bounded worker metrics for a heartbeat
-> shared runtime posts output events to the configured receiver
-> terminal statistics use persisted job history; incomplete counters are omitted
The full route is reached for lineage-enabled Zeta jobs. Disabled jobs do no emission. Each output owns a run ID with a restore or restart discriminator where applicable. Parser extraction keeps nonfatal failures out of job initialization, and fatal VM conditions keep propagating. Parent-job or standby transitions remain on the normal execution lifecycle.
1.2 Compatibility
Existing job checkpoint bytes are unchanged and old actions without dataset metadata are handled as empty. Enabled deployments require the core lineage modules and trusted token/receiver settings. Existing jobs run with reporting disabled by default.
1.3 Performance and side effects
The parser extracts metadata even when the local job flag is unset so a server-wide enablement can work. Delivery and heartbeat RPCs run on the isolated pool. One worker metrics deadline covers the group of futures, and job timeout/retry values are capped by trusted configuration. Slow receivers can still occupy reporting threads and cause best-effort drops on a saturated pool.
1.4 Errors, logging, and findings
No new source blocker found. The receiver and token use one trusted configuration path. Parser failures and incomplete worker snapshots are logged without changing job outcomes. Pool rejection logs the dropped events and gives lifecycle items precedence over queued heartbeats. I agree with leaving the pre-delivery heartbeat throttle update as the prior non-blocking follow-up.
2. Code quality
2.1 Conventions
Lifecycle, queue ordering and the worker deadline are documented in code. A typed lineage settings holder can follow without changing this merge's behavior.
2.2 Test coverage and stability
Stability: Stable on inspection. seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/ZetaLineageReporterTest.java:290 covers the terminal/heartbeat race, and :340 and :379 exercise ordered asynchronous delivery and coalescing with controlled synchronization. Parser, restart and worker metrics tests verify state and deadlines. Existing integration fixtures exercise the configured statistics path.
2.3 Documentation
The hybrid and separated guides still describe trusted receiver settings, supported timeout and retry bounds and runtime enablement in EN and ZH. The new baseline edits preserve those lifecycle settings.
3. Architecture
3.1 Change location
Master-side lifecycle reporting and a shared core transport are appropriate. Reporter work remains off worker task execution and the checkpoint I/O path.
3.2 Maintainability
Keep event sequencing at JobMaster and endpoint delivery in the shared backend. Maintain best-effort diagnostics for absent or rejected emissions.
3.3 Extensibility
New engine/connector dataset providers can use the shared SPI without changing how Zeta owns job and checkpoint milestones.
3.4 Upgrade impact
Persisted older actions can still restore without lineage. A new job attempt after restore reports a fresh lineage run identity.
4. Findings summary
| # | Finding | Location | Severity |
|---|---|---|---|
| - | No new source blocker found | - | - |
5. Merge recommendation
Ready to merge once CI and maintainer review clear
Blocking items: No source blocker remains for this head. A green exact-head Build, the shared core dependency and effective maintainer review are still required.
Non-blocking suggestions: Track the heartbeat success timestamp and typed configuration holder as agreed. @SEZ9 can refresh the earlier requested-changes record after the new verification.
The earlier green Build applies to the old head. The current fork Build is queued and Apache has no completed matching Build in the rollup.
CI and repository state: no check reported in the Apache rollup; Build: queued. GitHub reports BLOCKED / REVIEW_REQUIRED.
Verification: Reviewed all changed files and the referenced call sites at 22695d159d283eb1a1654218555d97b6a3072208 against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.
… master Checkpoint benchmarks construct a CheckpointManager without a JobMaster. A completed checkpoint always reports a lineage heartbeat, and the unconditional call threw a NullPointerException that failed CheckpointSchedulingFixtureTest. This change contributes to Apache SeaTunnel. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the follow-up, @88fantasy and @SEZ9. I re-reviewed all 73 changed files on d51ebfc095, including the shared lineage modules in this branch. The conflict resolution preserves the earlier fixes. I agree with @SEZ9's latest technical conclusion: the previous source blockers are closed; the heartbeat delivery acknowledgement and typed settings holder remain agreed follow-ups. This review replaces my older head-specific CI/conflict instructions.
What problem does this PR solve?
User pain. Operators cannot connect a running Zeta job to its input/output assets and lifecycle in an OpenLineage receiver.
Fix. Extract connector identities into the serialized DAG, construct per-output run events on the master, and deliver them through an isolated bounded pool.
Example and summary. A JDBC-to-Paimon streaming job reports START, checkpoint-triggered RUNNING samples and a terminal event under one output run ID. This adds best-effort visibility without putting receiver HTTP calls on the data-processing path.
1. Code changes
1.1 Core logic
The parser now validates that job options carry no receiver token and attaches extracted datasets to SourceAction/SinkAction. MultipleTableJobConfigParser.java:386 contains the actual try/catch, not just a comment: ordinary extraction failures return an empty list, while VirtualMachineError propagates. Merged multi-table sinks combine their identities.
Before:
reportJobStateEvent(targetState); // existing engine events only
pendingCounter.decrementAndGet(); // completed checkpoint bookkeeping onlyAfter:
ZetaLineageReporter.reportJobState(jobMaster, jobStatus);
checkpointManager.reportLineageHeartbeat();The first hook is guarded against repeated START after an unsuccessful savepoint start; the second follows checkpoint completion bookkeeping and timeout disarming (PhysicalPlan.java:450, CheckpointCoordinator.java:1461).
Client/server parser -> rejectJobAuthToken -> guarded dataset extraction
-> SourceAction/SinkAction -> serialized LogicalDag edges and identities
-> CoordinatorService creates or restores JobMaster with separate lineage executor
-> JobMaster.init(timestamp, restart) identifies this submission/restart/restore
-> PhysicalPlan.updateJobState (monitor held) -> START or terminal event snapshot
-> JobMaster.submitLineageEmission -> per-job ordered deque, pending RUNNING coalesced
-> isolated 2-thread / 64-waiting-job pool -> drain this job's pending events
-> LineageRuntime -> backend SPI -> OpenLineage JSON -> pooled HTTP client
Completed streaming checkpoint -> timeout disarmed -> reportLineageHeartbeat
-> eligibility/throttle check -> enqueue RUNNING
-> recheck terminal state on delivery thread
-> gather current worker metrics with one timed collection deadline
-> construct events -> advance attempt timestamp -> best-effort delivery
Terminal event -> historical metrics; FAIL/ABORT omit output statistics
-> uniquely owned resolved sink table counters; ambiguous slices omit statistics
-> restore/restart discriminator produces a separate output run ID
Coordinator shutdown -> shutdownNow / bounded await -> log dropped queued tasks
Key findings. (1) The enabled normal path reaches both lifecycle hooks; disabled reporting returns before emission. (2) The restored DAG is traversed through serialized edge IDs, avoiding transient Action upstream links (ZetaLineageReporter.java:310). (3) LineageConfig.receiverOption:312 binds a configured token to trusted receiver settings; the Zeta resolver at JobMaster.java:1178 also rejects job budgets above trusted limits. (4) Each started drain finishes its pending lifecycle events without requeueing, closing the earlier saturated-pool terminal-drop window (JobMaster.java:1421). (5) The design remains explicitly best effort: all-lifecycle saturation, shutdown or exhausted delivery attempts can lose events. These are documented limits, not an exactly-once lineage guarantee.
1.2 Compatibility
Fully compatible for existing jobs with reporting disabled. No existing option/default or checkpoint payload contract is replaced. SourceAction retains its serialVersionUID; SinkAction pins the prior identifier and both normalize absent legacy dataset fields. Authenticated job receiver overrides and excessive job send budgets are deliberately restricted and documented with migration instructions in both incompatible-changes pages. Move trusted receiver settings beside the token and remove conflicting job overrides. This feature depends on the shared foundation from #12208 landing first or together.
1.3 Performance and side effects
DAG extraction/allocation occurs at submission even when the client cannot see cluster enablement. Event construction walks the DAG; worker RPCs and blocking HTTP run on the isolated pool, rather than the coordinator executor or checkpoint monitor. The worker futures share one deadline (JobMaster.java:1245), so the wait does not multiply by worker count. The HTTP client is process-shared with explicit connection limits; retries can duplicate best-effort event delivery and per-phase timeouts are not a total wall-clock deadline. No new row-processing allocation, data retry or data idempotency change is introduced. Shutdown can drop emissions and reports this; reporting is not a durable outbox.
1.4 Errors, logging, and findings
No new source blocker found. +1 to @SEZ9's closure of the earlier token-redirection, parser-guard, metrics-wait, budget and documentation requests: the guards and their tests are present on this head. Incomplete metrics return null instead of publishing a partial aggregate as complete, and ordinary emission/provider failures are logged without changing the job result. Fatal VM errors retain propagation. EngineConfig excludes lineageOptions from its generated toString (EngineConfig.java:141); the typed holder remains a maintainability follow-up, not evidence of a currently reproduced token log. The previously agreed heartbeat acknowledgement follow-up still applies: the timestamp advances before HTTP success (ZetaLineageReporter.java:139), so a failed send can consume the interval.
2. Code quality
2.1 Conventions
The lifecycle, receiver trust, DAG serialization, worker deadline, SPI/class-loader ownership and delivery queue contracts have explanatory comments. One stale drain comment still says it requeues, although the implementation now drains in-place; that wording can be tidied without changing behavior. I found no need to reopen the resolved source requests.
2.2 Test coverage and stability
Stability: Stable on source inspection. ZetaLineageReporterTest.java:340 and :379 use bounded latch coordination and finally-shutdown for off-thread ordering/coalescing; the full-queue regression at :453 waits for the controlled START before filling the queue. CoordinatorServiceTest.java:112 holds both workers before asserting saturation and releases them in finally. Static mocks close with try-with-resources; local HTTP fixtures use allocated ports and stop in cleanup. MultiTableMetricsIT.java:265 polls for COMPLETE then checks both independent outputs, distinct runs, event order, attributed row/byte counters and token headers through real serialization/reporter/backend. It injects test dataset identities for FakeSource/Console, so it does not prove real JDBC/Paimon extraction end to end. Configuration, SPI discovery, missing legacy fields, restore identities, null/overlapping metrics and parser failure isolation have focused tests. The compatibility test pins identifiers and simulates absent fields; it is not an old-binary serialized fixture. No tests were executed in this review.
2.3 Documentation
Both EN/ZH lineage guides and hybrid/separated deployment guides carry the receiver ownership, defaults, best-effort queue limits, heartbeat limitations and upgrade restrictions. The separated page explicitly limits credential resolution to the master. The earlier misleading Flink-section links were removed; shared Flink references describe the sibling integration contract, not validation of #12210. The API key/default parity tests bind the duplicate declarations.
3. Architecture
3.1 Change location
A long-term opt-in integration with precise master lifecycle hooks. The generic dataset/event/backend contract stays separate from engine ownership, while delivery isolation protects scheduling and checkpoint callbacks.
3.2 Maintainability
Keep per-job ordering and coalescing in JobMaster, and endpoint conversion/transport in the backend. The shared modules present in this diff were reviewed as well; the separate foundation PR must still be coordinated at merge.
3.3 Extensibility
Extractor and backend SPI permit more connector identities/transports without engine branches. Job-only class-loader extractors are intentionally not retained by the static factory; that documented boundary prevents pinning a job loader.
3.4 Upgrade impact
Legacy actions without dataset fields remain usable. Recovered/restarted jobs receive a recomputable attempt discriminator; best-effort reporting does not alter data checkpoint semantics. The new trusted-setting restrictions have explicit migration notes.
4. Findings summary
| # | Finding | Location | Severity |
|---|---|---|---|
| - | No new source blocker found | - | - |
5. Merge recommendation
Can merge after the remaining gates clear
Blocking items: No source blocker remains for this head. Require a successful exact-head Build, the shared #12208 dependency, and effective write-capable maintainer review. A queued Build is not acceptance.
Non-blocking suggestions: Track the agreed heartbeat acknowledgement and typed settings holder follow-ups. Correct the stale drain comment when convenient; none is a new merge blocker.
The prior conflict instruction has been superseded by this new head. The current Build must establish its own result; an older green run does not transfer. My READ-level review does not dismiss another reviewer's historical changes-requested entry or satisfy an effective write-review gate. A write-capable maintainer must handle any remaining approval/dismissal and merge step.
CI and repository state: no check reported in the Apache rollup; Build: queued. GitHub reports BLOCKED / REVIEW_REQUIRED.
Verification: Reviewed all changed files and the referenced call sites at d51ebfc095010816e1b7409e148224515f2a9bbf against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.
|
Thanks for the update on Closed The re-review reports that the previous source blockers are closed and that the conflict resolution preserves the earlier fixes. In particular:
Agreed follow-ups
Deferring both is fine with me. If tracking issues exist for them, could you link them here so they don't get lost? Beyond those two follow-ups, I have nothing further on the previous source review points. |
Contain extractor failures, compare trusted receivers only when lineage is enabled, parse Oracle and SQL Server JDBC URLs, keep the auth token out of Java serialization, reject non-HTTP endpoints before retry, and bound timeout and retry values. A malformed enabled flag in the process environment or cluster configuration disables reporting instead of failing every job. Yes, this change is a contribution to Apache SeaTunnel. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
Keep the Zeta cluster configuration and event sections, and state the fixed timeout and retry limits instead of treating environment values as the maximum. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
Keep the Flink cluster configuration and event sections, and point Zeta identifiers at PR apache#12209. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Sorry for missing these budget-validation cases in my last review. Both are carryovers from the previously cleared version, not newly introduced by this merge. I re-reviewed the complete current Apache SeaTunnel diff and checked the failing exact-head unit log. The earlier broad source clearance needs the two corrections below; the other resolved review points stay closed.
What problem does this PR solve?
User pain: Zeta jobs cannot report their input/output assets and lifecycle to a lineage receiver. Fix: carry extracted datasets in the serialized DAG and send ordered per-output events from an isolated pool. Example: a streaming table sync reports START, checkpoint-triggered RUNNING and COMPLETE with attributable counters under one run identity.
1. Code changes
1.1 Core logic
Complete runtime path:
Client/server MultipleTableJobConfigParser -> reject job token -> guarded dataset extraction
-> serializable SourceAction/SinkAction + LogicalDag edge IDs
-> CoordinatorService creates/restores JobMaster with independent lineage pool
-> PhysicalPlan RUNNING/terminal transition -> build event -> ordered per-job drain
-> 2 delivery threads / 64 waiting-job queue -> LineageRuntime/backend HTTP
Completed checkpoint -> timeout disarmed/bookkeeping complete -> enqueue heartbeat
-> delivery thread rechecks terminal state -> timed worker metrics with shared deadline
-> omit incomplete/ambiguous statistics -> attempt-based throttle -> emit
Terminal events use history metrics; FAIL/ABORT omit statistics
Master restart/checkpoint/savepoint restore -> deterministic attempt discriminator; shutdown logs dropped work
Key findings and correctness:
The full current diff includes the shared foundation; 39 file blobs are identical to the foundation independently read in this batch. Engine callers were traced separately. Token trust, parser containment, serialized-edge traversal, same-job lifecycle ordering and heartbeat coalescing are implemented. Active drains keep lifecycle events without requeueing. Metrics have one collection deadline and incomplete replies omit statistics. The remaining budget resolution has a disabled-config edge: resolving trusted limits through the ordinary disabled reporting resolver replaces administrator limits with defaults. The new bounds test also never enables reporting, so it returns defaults rather than entering the bounds check; exact-head CI confirms that assertion failure.
Before:
.noDefaultValue()
.withDescription(
"The http path of the metadata lake, for example: http://localhost:8090/api/metalakes/laowang_test/catalogs/");
}
After:
.noDefaultValue()
.withDescription(
"The http path of the metadata lake, for example: http://localhost:8090/api/metalakes/laowang_test/catalogs/");
public static Option<Boolean> OPENLINEAGE_ENABLED =
Options.key("openlineage_enabled")
.booleanType()
.defaultValue(false)
.withDescription("Whether OpenLineage lineage reporting is enabled.");
public static Option<String> OPENLINEAGE_TRANSPORT =
Options.key("openlineage_transport")
.stringType()
.defaultValue("http")
.withDescription(
"Transport name selected from the LineageBackend service provider interface.");
public static Option<String> OPENLINEAGE_URL =
Options.key("openlineage_url")
.stringType()
.noDefaultValue()
.withDescription(
"Base URL of the OpenLineage receiver, for example: http://host:8090/api/lineage");
public static Option<String> OPENLINEAGE_NAMESPACE =
Options.key("openlineage_namespace")
.stringType()
.defaultValue("seatunnel")
.withDescription("OpenLineage job namespace.");
public static Option<String> OPENLINEAGE_AUTH_TOKEN =
Options.key("openlineage_auth_token")
.stringType()
.noDefaultValue()
.withDescription(
"Bearer token for the OpenLineage receiver. It may only come from the "
+ "OPENLINEAGE_AUTH_TOKEN environment variable or from cluster configuration; "
+ "declaring it in a job env block is rejected when lineage configuration is resolved.");
public static Option<Integer> OPENLINEAGE_TIMEOUT_MS =
Options.key("openlineage_timeout_ms")
.intType()
.defaultValue(10000)
.withDescription(
"Timeout of one send attempt, in milliseconds. Must be from 1 through 60000;"
+ " larger values are rejected.");
public static Option<Integer> OPENLINEAGE_RETRY_TIMES =
Options.key("openlineage_retry_times")
.intType()
.defaultValue(3)
.withDescription(
"Number of retries after a failed send attempt. Must be from 0 through 10;"
+ " larger values are rejected.");
Exact-head CI evidence: https://github.com/88fantasy/seatunnel/actions/runs/44433321493/job/135261419823 . The unit log ends with ZetaLineageReporterTest.shouldRejectJobTimeoutAndRetryBudgetsAboveClusterLimits:142: expected IllegalArgumentException, but nothing was thrown. This is PR-owned test behavior; syncing dev or adding unrelated dependencies is not the fix.
1.2 Compatibility
Disabled-by-default reporting preserves data task/checkpoint semantics. Authenticated receiver restrictions and trusted send budgets are intentional compatibility changes in both migration guides. SourceAction/SinkAction retain pinned UIDs and normalize absent dataset fields, but the reflective missing-field test is not an old-binary stream fixture. The shared #12208 dependency must be coordinated at merge.
1.3 Performance and side effects
DAG extraction runs at submission even without client-visible cluster enablement, with ordinary failures contained. No per-row reporting. Event construction traverses edges; metrics RPC and HTTP use the isolated pool. Two threads and 64 waiting jobs bound shared delivery scheduling, with documented best-effort loss on saturation/shutdown/failure. HTTP per-phase timeouts are not a hard total deadline. Attempt-throttle acknowledgement and a typed config holder remain agreed follow-ups.
1.4 Errors, logging, and findings
Issue 1: Resolve trusted send limits independently of reporting enablement (previously missed)
- Location:
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobMaster.java:1180. - Description and risk: resolveLineageConfig resolves the job normally, then calls LineageConfig.resolve(emptyJob, clusterOptions, environment) for limits. LineageConfig.resolve returns defaults as soon as that trusted-only view is disabled. With cluster timeout_ms=20000 and retry_times=5 but no cluster enabled flag, a job enabling lineage with timeout_ms=15000/retry_times=4 is valid under the documented administrator limits, yet the comparison uses 10000/3 and rejects reporting. This is related to @SEZ9 F5 but is the opposite boundary of its fix. It existed at my previously cleared head; I missed it.
- Best improvement: Resolve the two trusted budget values without depending on the global enabled flag, while retaining their numeric bounds and environment precedence. Add cases for job-only enablement with larger and smaller trusted limits, plus disabled jobs with malformed unrelated settings.
- Responsibility and trade-off: The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.
- Severity: Medium; blocking: true.
- Previously raised by another reviewer: No, unless explicitly attributed above.
Issue 2: Enable reporting and test the actual administrator-bound comparison (previously missed)
- Location:
seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/ZetaLineageReporterTest.java:133. - Description and risk: The fixture puts only Integer.MAX_VALUE in JobConfig.envOptions. The empty default options contain no enabled flag, so the resolver returns disabled defaults and throws nothing. Exact-head unit-test JDK17 Ubuntu job 135261419823 reports this precise failure at line 142. In addition, Integer.MAX_VALUE exceeds the foundation absolute caps, so enabling it alone still would not prove the Zeta trusted-limit comparison. This was also present in the previous review.
- Best improvement: Enable lineage explicitly, configure a trusted limit, and choose a job value above that limit but inside the foundation absolute maximum. Cover timeout and retries independently, including a permitted override. Keep the disabled-default contract as a separate test.
- Responsibility and trade-off: The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.
- Severity: Medium; blocking: true.
- Previously raised by another reviewer: No, unless explicitly attributed above.
I agree that @SEZ9's earlier receiver-redirection, untimed metrics wait, parser guard and documentation points have been addressed. His later discussion accepts source clearance and the acknowledgement/typed-holder follow-ups. I need to revise my own prior clearance for the two concrete budget cases below: the exact CI assertion and disabled-trusted-config branch are stronger current evidence than the earlier blanket clearance. F5 is partially related and explicitly attributed; the other closed points are not duplicated.
2. Code quality
2.1 Conventions
Reviewed all changed files for license, imports, naming, core-method and state-field comments. See the numbered findings for the required changes.
2.2 Test coverage and stability
Stability rating: Stable. Config/SPI/token serialization tests, action compatibility guards, queue saturation/latch ordering, checkpoint hooks, source-edge traversal and per-sink statistics cases were read. MultiTableMetricsIT uses a real receiver and serialized job, verifies distinct runs, START-before-COMPLETE and exact row/byte attribution with token headers; injected FakeSource/Console identities do not prove real connector extraction end to end. Async tests use bounded latches and scoped static mocks. The new budget test has a deterministic assertion failure (Issue 2), not a timing flake. No local test was run.
2.3 Documentation
Both lineage guides and hybrid/separated deployment pages describe real cluster locations, master-only credentials, best-effort queue limits, checkpoint heartbeat trigger and counter attribution. Both migration pages say administrator timeout/retry values define job limits; Issue 1 must be resolved so job-only enablement actually follows that statement.
3. Architecture
3.1 Change location
The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.
3.2 Maintainability
Keep the behavior, lifecycle ownership, and failure contract together. The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.
3.3 Extensibility
Prefer the existing component boundary and tests over unrelated shared abstractions.
3.4 Upgrade impact
Disabled-by-default reporting preserves data task/checkpoint semantics. Authenticated receiver restrictions and trusted send budgets are intentional compatibility changes in both migration guides. SourceAction/SinkAction retain pinned UIDs and normalize absent dataset fields, but the reflective missing-field test is not an old-binary stream fixture. The shared #12208 dependency must be coordinated at merge.
4. Findings summary
| # | Finding | Location | Severity |
|---|---|---|---|
| 1 | Resolve trusted send limits independently of reporting enablement (previously missed) | seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobMaster.java:1180 |
Medium |
| 2 | Enable reporting and test the actual administrator-bound comparison (previously missed) | seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/ZetaLineageReporterTest.java:133 |
Medium |
5. Merge recommendation
Merge after fixes
Blocking items: Issues 1, 2. Current-head CI and write-capable maintainer review remain independent requirements.
Non-blocking suggestions: None beyond the validation limits above.
Overall: the approach addresses a real path, but the listed blockers must be closed. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.
CI and repository state: no check reported in the Apache rollup; Build: queued. GitHub reports BLOCKED / REVIEW_REQUIRED.
Verification: Reviewed all changed files and the referenced call sites at b693b03a7bbbfa8eb5501b9ff3bcf43a49d1211d against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.
Review time: 2026-11-19T07:33:59.109782-05:00
Local evidence: git fetch obtained head b693b03a7bbbfa8eb5501b9ff3bcf43a49d1211d; git merge-base returned afae3f28810fdf8c9fae8d4121f967e73eb2f2f5; git diff --stat reports 73 files changed, 8253 insertions(+), 6 deletions(-). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.
|
Thanks for the continued work on this. Two follow-ups remain, both on the earlier point about bounding
The other previously raised points stay closed, so nothing further is needed on those. Once both changes are pushed, please reply here with a short note on how the limits are now resolved, and I'll take another look. |
Resolve administrator timeout and retry caps from the process environment and cluster configuration without consulting openlineage_enabled, so a disabled cluster default cannot replace those caps with the reporting defaults. Enable reporting in the bounds test and cover the disabled edge. Yes, this change is a contribution to Apache SeaTunnel. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
Add trustedTimeoutMs and trustedRetryTimes so an engine can read the administrator timeout and retry caps when openlineage_enabled is false. LineageConfig.resolve still returns defaults for a disabled configuration. Yes, this change is a contribution to Apache SeaTunnel. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
Yes, this change is a contribution to Apache SeaTunnel. Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the follow-up. I re-reviewed the whole current head and checked the administrator-cap path raised by @SEZ9 and in my last review. Both earlier blockers are closed for me now. The remaining gates are the current CI result and effective write-capable maintainer approval.
What problem does this PR solve?
User pain: native Zeta jobs have no lifecycle-linked table lineage or trustworthy per-output delivery statistics. Fix: extract connector datasets into the serialized DAG, resolve reporting on the master, and report ordered lifecycle/checkpoint events through an isolated bounded pool. In one sentence: report the actual Zeta run and its reachable input/output tables without putting HTTP on the checkpoint thread. Example: two independently filtered outputs with 10 and 5 committed rows receive separate COMPLETE events and counters, rather than each receiving the combined job total.
1. Code changes
1.1 Core logic
Complete runtime path:
Client MultipleTableJobConfigParser -> reject job auth_token before persistence
-> named connector extractors -> source/sink dataset lists in actions -> LogicalDag serialization
-> CoordinatorService creates JobMaster with dedicated 2-thread/64-waiting-job executor
-> JobMaster.init restores DAG and attempt identity
-> PhysicalPlan.updateJobState -> guarded single START / terminal state -> ZetaLineageReporter
-> resolve cached job/environment/cluster configuration; independent trusted send-cap accessors
-> reverse serialized DAG edges -> reachable inputs; configured sink outputs
-> terminal history metrics: unique resolved sink tables, never ambiguous multi-sink totals
-> per-job ordered drain -> shared SPI/HTTP backend -> warning-only best-effort delivery
Completed streaming checkpoint -> notify succeeds -> remove pending/disarm timeout/decrement counter
-> throttled async heartbeat -> worker metrics RPCs sharing one deadline -> RUNNING event
-> end-state check discards heartbeat racing terminal event; failures omit incomplete statistics
Savepoint/checkpoint restore or master restart -> deterministic distinct attempt discriminator
Coordinator shutdown -> bounded wait and visible queued-event loss; data execution remains independent.
Key findings and correctness:
I re-read the complete 73-file diff. The 39 identical shared files were compared byte-for-byte with the freshly reviewed #12208 head; the remaining integration diff was read in full, including the four differing guides, engine wiring and tests. Earlier Daniel Issues 1 and 2 are closed: JobMaster now reads trustedTimeoutMs/trustedRetryTimes directly, not from disabled resolve defaults; enabled tests use values inside absolute bounds and assert the actual administrator-limit error. Disabled trusted reporting preserves tighter and looser caps, and a disabled job skips cap comparison. At seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/master/JobMaster.java:1191 the normal enabled job path enforces both caps. At seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/ZetaLineageReporterTest.java:162 both directions are exercised. Source/sink null-safe dataset getters retain legacy missing-field behavior and pinned serial identifiers. DAG traversal uses serialized edges rather than transient upstreams. No new source-level blocker found. Delivery remains deliberately best effort, and unsupported identities/ambiguous table ownership omit events/statistics rather than invent values.
Before (previous reviewed revision):
LineageConfig trusted = LineageConfig.resolve(Collections.emptyMap(), clusterOptions, environment);
// A disabled trusted configuration returns default timeout/retry limits.After:
if (resolved.enabled()) {
int timeoutLimit = LineageConfig.trustedTimeoutMs(clusterOptions, environment);
int retryLimit = LineageConfig.trustedRetryTimes(clusterOptions, environment);
// Compare the enabled job's requested budgets to the actual administrator caps.
}1.2 Compatibility
Additive default-disabled configuration; no row format, checkpoint payload or connector delivery guarantee changes. New DAG fields are null-safe for legacy streams, and declared Java serialization IDs are pinned by tests. The shared authenticated-receiver restriction is explicitly documented in EN/ZH incompatible-changes guidance: put endpoint/transport with the trusted token and do not place auth_token in submitted jobs. Existing deployment modes retain their defaults.
1.3 Performance and side effects
No per-record HTTP or new checkpoint-held blocking call. Two dedicated delivery threads and at most 64 waiting jobs isolate coordinator scheduling. Pending heartbeats coalesce, lifecycle work may evict queued heartbeat-only drains, and saturation/shutdown loss is logged. A job drains its own events in order; a slow receiver can occupy a delivery thread, so best effort and shared capacity remain operational limits. Current worker metrics requests share a deadline and incomplete slices are omitted; terminal counters reuse history. DAG traversal is proportional to metadata, not rows. No change to row retry/idempotence or source/sink ownership.
1.4 Errors, logging, and findings
No new source-level blocker found. Exceptions must still reach the existing job failure path; this review does not substitute for current-head CI.
I read all earlier reviews and discussions, including @SEZ9's change request 5678322145 and latest follow-up 7025680072. +1 to the two requested corrections: independent trusted-cap lookup and a test that genuinely reaches the cap comparison. Both are present now, so I am not repeating those closed findings. The earlier transport isolation, serialized-DAG traversal, token boundary, output-statistics and lifecycle concerns were checked against the current implementation as well. This technical clearance does not dismiss the peer's historical requested-changes record or substitute for a maintainer approval.
2. Code quality
2.1 Conventions
Reviewed all changed files for license, imports, naming, core-method and state-field comments. No additional convention blocker found.
2.2 Test coverage and stability
Stability rating: Stable. Stable under the normal sequential test setup. seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/CoordinatorServiceTest.java:112 uses latches and a real bounded queue, verifies heartbeat eviction and lifecycle preservation, and releases/shuts down in finally. seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/master/ZetaLineageReporterTest.java:402 gates the first send and checks ordered delivery after a throwing event; scoped static mocks and dedicated executors are closed. The regression suite covers trusted limits while disabled, bounded worker metrics timeout, heartbeat/terminal races, interval disablement, restart identity, edge traversal, two-output unequal counts/bytes, missing counters and shared targets. seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/MultiTableMetricsIT.java:266 captures real job HTTP output with an ephemeral receiver and condition-based waits, then checks exact per-output counts/bytes and auth; teardown stops the receiver and cluster. The legacy-action test pins UIDs and simulates an absent field; it is not a historical binary-fixture round trip. Packaged/external-receiver runtime acceptance was not executed locally.
2.3 Documentation
EN/ZH cover cluster/env/job precedence, administrator send caps even while cluster reporting is disabled, per-output names, best-effort bounded queue loss, savepoint/restart identities, completed checkpoint heartbeats, conservative statistics and the trusted token boundary. Both cluster deployment guides point to the correct configuration block. Shutdown can lose events and HTTP timeouts are per phase rather than an overall delivery deadline; the implementation does not promise exactly-once lineage.
3. Architecture
3.1 Change location
Keep Zeta state transitions, checkpoint timing and executor ownership in the engine; keep dataset/configuration/HTTP mechanics in the shared lineage modules.
3.2 Maintainability
Keep the behavior, lifecycle ownership, and failure contract together. Keep Zeta state transitions, checkpoint timing and executor ownership in the engine; keep dataset/configuration/HTTP mechanics in the shared lineage modules.
3.3 Extensibility
Prefer the existing component boundary and tests over unrelated shared abstractions.
3.4 Upgrade impact
Additive default-disabled configuration; no row format, checkpoint payload or connector delivery guarantee changes. New DAG fields are null-safe for legacy streams, and declared Java serialization IDs are pinned by tests. The shared authenticated-receiver restriction is explicitly documented in EN/ZH incompatible-changes guidance: put endpoint/transport with the trusted token and do not place auth_token in submitted jobs. Existing deployment modes retain their defaults.
4. Findings summary
| # | Finding | Location | Severity |
|---|---|---|---|
| - | No new source blocker found | - | - |
5. Merge recommendation
Can merge once the recorded CI and repository gates are satisfied
Blocking items: No source blocker. Current-head CI and write-capable maintainer review remain independent requirements.
Non-blocking suggestions: None beyond the validation limits above.
Overall: the reviewed source path is coherent; no runtime acceptance is claimed beyond the actual CI result. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.
CI and repository state: no check reported in the Apache rollup; Build: in_progress. GitHub reports BLOCKED / REVIEW_REQUIRED.
Verification: Reviewed all changed files and the referenced call sites at c71e833f9a7375d821e2a36def745c860aaf1f3b against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.
Review time: 2026-11-20T07:19:26.793997-05:00
Local evidence: git fetch obtained head c71e833f9a7375d821e2a36def745c860aaf1f3b; git merge-base returned afae3f28810fdf8c9fae8d4121f967e73eb2f2f5; git diff --stat reports 73 files changed, 8459 insertions(+), 6 deletions(-). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.
Specific current-head CI diagnosis: Redis integration, Java 17 fails during Maven-wrapper bootstrap: the wrapper download returns HTTP 404 before the Redis test runs. This is not evidence of a lineage assertion failure. Latest dev has the same wrapper bootstrap location; I found no verified base fix that makes syncing a cure. Please retrigger that lane after wrapper download availability is restored; obtain completed results for cancelled LocalFile/all-connectors lanes and the two still-running Kafka lanes. The current Linux/Windows unit lanes, engine lanes and dependency-license lane have succeeded. I am not approving while this Build remains incomplete.
|
The CI fact cited in my previous review has changed on unchanged head |
|
Quick update on where this stands, with no new review topics. CI on
Remaining ask Once the wrapper download is available again, please complete the failed and cancelled lanes (LocalFile Java 11 and Java 17) on this head, without adding unrelated lineage or dependency changes. The source assessment on this unchanged head remains cleared. CI and effective maintainer approval still block acceptance. No local build or test was run. |
|
Thanks, @SEZ9. I agree with using the final attempt-2 manifest, rather than the earlier Redis/Kafka list. The remaining failed lane is LocalFile/JDK11 ( Checked unchanged head |
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for keeping the validation moving. The CI facts in my earlier reply have changed: the latest attempt of Build 44650517929 has no failed job in its final 97-job manifest. LocalFile/JDK11 (137526864683) and LocalFile/JDK17 (137526865528) are both cancelled, so neither supplies a passing result. The earlier failed wrapper lane is no longer the current manifest. Please rerun those two cancelled lanes; no source patch is indicated by cancellation. #13219 is still open, so its proposed timeout change is not a verified fix already on dev.
5. Merge recommendation
Conclusion: Merge after the remaining CI and repository gates are satisfied
-
Blocking items: No source blocker from the previous complete review. The cancelled lanes need completed acceptable results, followed by effective write-capable maintainer approval/dismissal.
-
Non-blocking suggestions: Existing optional suggestions remain unchanged.
Overall assessment and alternatives: Keep the reviewed lineage implementation; do not introduce LocalFile or wrapper workarounds merely to compensate for a cancelled run. This is a CI follow-up on unchanged head c71e833f9a7375d821e2a36def745c860aaf1f3b, not a fresh complete source review. Base dev, compare diverged, ahead_by=47, behind_by=24. Drift is recorded independently and does not itself request syncing. Daniel has READ permission; no effective write-reviewer approval or historical-request dismissal is claimed. No local build, test or runtime was performed.
|
Thanks for keeping the validation moving on this. CI update (this replaces the CI facts in the earlier reply)
Previous review points The head is unchanged at Remaining asks
|
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks, @SEZ9. First, the CI fact has changed: the latest exact-head Build 44650517929 is now SUCCESS. The request to rerun the two cancelled LocalFile jobs is therefore superseded; the remaining repository gate is effective maintainer review.
The configuration contract is explicit in seatunnel-lineage/LineageConfig.java:
- resolve at 157-186 rejects a job-supplied auth token before resolving anything, including disabled reporting. The parser also rejects it before submission.
- Without an administrator token, URL and transport use job > process environment > cluster precedence through receiverOption at 399-407.
- With an environment/cluster token, URL and transport are pinned to the trusted environment/cluster receiver. A differing job override fails at 419-422; an equivalent value is allowed. A job cannot redirect the administrator's token to its own receiver.
- enabled is still job > environment > cluster at 489-503; a job may disable its own reporting. A malformed job flag fails, whereas malformed administrator flags disable reporting with a warning.
- Token resolution itself is environment > cluster; it is not part of job-option precedence. Trusted timeout/retry caps also ignore job settings and remain enforced when reporting is disabled.
Those boundaries were closed in the prior source review; the configuration and reporter tests cover the override and disabled/cap cases. No new source blocker is opened by this clarification. Any historical requested-changes entry must be reconciled by a write-capable maintainer; a green fork run and Daniel's technical clearance do not silently dismiss it.
This is a discussion follow-up on unchanged head c71e833f9a7375d821e2a36def745c860aaf1f3b, not a new full source review. I inspected the named local source paths; no local build, test or SeaTunnel runtime was executed. Daniel has READ permission; effective maintainer approval and historical review dismissal remain separate repository actions.
My previous source conclusion had only CI/repository gates remaining. The formerly cancelled CI is now successful on both Apache and the exact-head fork, so I am changing my technical review to APPROVED. This READ-level approval does not satisfy a required write-capable reviewer or dismiss historical changes requests.
Summary
Yes, I am contributing this change to Apache SeaTunnel.
Implements #12205, part of #12207. Stacked on #12208: until Core merges into
dev, this diff also includes the shared lineage modules/options. Review Zeta-specific commits withgit log feature/openlineage-core..feature/openlineage-zeta.Adds
ZetaLineageReporterand its JobMaster/PhysicalPlan/checkpoint lifecycle hooks. Reporting is opt-in throughopenlineage_enabled=falseby default and uses the Core backend SPI. Job token validation remains before job configuration persistence.User-facing behavior
openlineage_job_name_per_output=truealso gives it a stable job name:<job>::<output namespace>/<output name>. The default preserves the original job name, including for a single output.Evidence
Validated commit:
9fbaeb1240220c6a81c72ad5619123944299da0e(2026-10-26)../mvnw spotless:apply: passed../mvnw -q -DskipTests verify: passed. This command skips tests../mvnw -B -pl \ seatunnel-engine/seatunnel-engine-server,seatunnel-api,seatunnel-lineage,seatunnel-lineage-openlineage,seatunnel-ci-tools \ -am \ '-Dtest=*Lineage*Test,EnvOptionRuleTest,MarkdownTest,StateTransitionCleanupTest,CheckpointCoordinatorTest' \ -Dsurefire.failIfNoSpecifiedTests=false verify ./mvnw -B -pl seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base -am -DskipUT -DskipIT=false \ -Dit.test=MultiTableMetricsIT -Dfailsafe.failIfNoSpecifiedTests=false -DfailIfNoTests=false verifyBefore the statistics fix, 7 behavioral assertions failed (cross-sink totals and ambiguous/missing counters); the corresponding reporter tests now pass.
MultiTableMetricsITstarts a real local SeaTunnel engine and HTTP receiver. It verifies independent per-output names/runs, START/COMPLETE, 10/5 row counts and matching byte counts. This is local in-process engine acceptance, not the complete Docker/cluster matrix.The current JobMaster constructor's lineage executor is supplied by the existing cleanup test; required Spotless wrapping/blank-line fixes are included.
Current-head fork Build is queued; the Apache PR currently exposes no check rollup. CI is not established as green.
Full-suite coverage is not established: an unfiltered
clean verifyof the Zeta branch stops inconnector-file-basebecause Snappy has no native library for macOS/aarch64 (12 errors); 4 existing storage tests are disabled, and later reactor modules are not executed. The passing targeted runs do not replace the full suite.Earlier revisions reported isolated Gravitino/Paimon/Doris manual acceptance. Those external-system runs were not repeated on this head and are not counted as current-head validation.
Merge Danger
Door: two-way. Both reporting and per-output job naming are opt-in; no storage migration is added.
Blast Radius: Zeta. Lifecycle/checkpoint hooks and metric attribution require the focused regression coverage above. Enabling per-output naming changes the receiver's job identity intentionally; the default preserves it. Real multi-master/external-sink acceptance and the full CI matrix remain unverified.
Contribution checklist
MultiTableMetricsITupdated.