You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "88fantasy (via GitHub)" <gi...@apache.org> on 2026/09/08 09:26:37 UTC
[PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
88fantasy opened a new pull request, #12210:
URL: https://github.com/apache/seatunnel/pull/12210
> **Stacked on #12208.** This branch is built on top of `feature/openlineage-core` (PR #12208), so until #12208 merges, this diff also shows #12208's changes (the `seatunnel-lineage`/`seatunnel-lineage-openlineage` modules and the new `openlineage_*` options). It will shrink to just the Flink-specific commits once #12208 merges into `dev`. Please review this PR's own commits (`git log feature/openlineage-core..feature/openlineage-flink`); #12208's commits are under separate review there.
### Purpose of this pull request
Implements #12206 (part of the umbrella #12207), stacked on #12208. Adds `seatunnel-lineage-flink` (`LineageJobStatusHook`, the Flink-1.16+-only half) and `FlinkLineageHooks`/`FlinkLineageSupport` in `seatunnel-flink-20-starter`/`seatunnel-flink-starter-common`, so a job submitted through the Flink 1.20 starter reports OpenLineage events when `openlineage_enabled = true`. The Flink 13/15 starters are untouched and get no lineage capability — documented as a known limitation (`JobStatusHook` doesn't exist before Flink 1.16), not a bug to fix here.
### Does this PR introduce _any_ user-facing change?
Yes, but opt-in only, and only for the Flink 1.20 starter. Enabling it also requires a one-time deployment step: a shaded jar (`seatunnel-lineage-flink-*-shaded.jar`) must be placed in `$FLINK_HOME/lib` on every JobManager and the JobManager restarted, because `JobGraph` deserialization happens before the user classloader exists. Documented in this PR's docs update, including the requirement that the client-side starter jar and the cluster-side shaded jar be upgraded together.
### How was this patch tested?
- Unit tests: `LineageJobStatusHookTest`, `FlinkLineageRegistrationTest`, `FlinkLineageHookNamingTest`, `FlinkLineageSupportTest`, and `ShadedArtifactIT` (builds the actual shaded jar and asserts its OpenLineage facets survive shading without corruption — gated behind `-DskipIT=false` like the rest of this repo's IT suite; passes).
- End-to-end against a real Gravitino instance, using a shared sandbox Flink 1.20 standalone cluster: the shaded jar was placed in `lib/` on both the JobManager and TaskManager, the cluster restarted, tested, then restored — `conf/config.yaml`'s checksum was verified to match the pre-change baseline exactly after restoring, and the lineage jar was removed from `lib/` again.
- **Detached** submission (`flink run -d`) of `FakeSource (10 rows) → Doris`: Gravitino received exactly one `start` and one `complete` event — the JobManager-side hook's own terminal report, carrying the Flink job ID but no statistics, as designed for detached mode. Verified against the table: `SELECT COUNT(*) = 10`.
- **Attached** submission (`flink run`) of the same job: exactly one `start` and one `complete` event — this time the client-side report, carrying `outputStatistics: {rowCount: 10, size: 170}` and an `output_statistics_semantics: attempted` facet. Same table verification. End-to-end client wall time was ~9.8s, confirming the JobManager-side terminal send (asynchronous in this PR) does not block job completion.
- Both runs used this PR's client jar and cluster jar together, avoiding the version-mismatch pitfall documented in the deployment doc.
- `./mvnw -q -DskipTests verify` across the whole reactor — 470 modules, BUILD SUCCESS. This branch's affected-module unit tests all pass.
### Check list
* [ ] No new JAR beyond what #12208 already registers (this PR only adds a shaded packaging of existing dependencies for cluster-side deployment)
* [x] Documentation updated (`docs/en`, `docs/zh` — Flink section of the lineage concept page, including the `$FLINK_HOME/lib` deployment step)
* [ ] `incompatible-changes.md` — not applicable
* [ ] Connector-specific checklist items — not applicable
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7300052599
Thanks @SEZ9 for the follow-up. The source read was on `7fd85ac088`. The current head is `5cec184142`, which also includes the later terminal-send fixes (`f8f7ba2f9`) and a JobManager parent-loader IT for the `execute(StreamGraph)` registration path. Item-to-source/test mapping below.
**Already accepted in source (F8, F10)**
Agreed. No further change on those points.
**F3 (heartbeat interval vs stalling other jobs)**
I am not adding an upper bound for `openlineage_heartbeat_min_interval_ms`. A very large value only widens the gap between heartbeat sends (or disables heartbeats when set to `0`). It does not lengthen a single HTTP send, and the send path does not block for that interval. The risk of one job holding up others on a session JobManager is already bounded by the per-call caps: timeout 1..60000 ms and retries 0..10. Heartbeats also run on a per-job daemon scheduler rather than a shared thread.
**F4 (worst-case blocking time)**
`LineageRuntime.eventSetBudgetNanos` sets one event-set budget:
`(retryTimes + 1) * 3 * timeoutMs + backoff + 1000 ms`
The factor of 3 is because one HTTP attempt can spend `timeoutMs` in each of the connect, connection-request, and socket phases. At the maximum caps (60000 ms, 10 retries, backoff 550 ms) the budget is 1,981,550 ms (about 33 minutes).
The budget is checked between sends and does not interrupt a send already in progress. After a full first cycle, about 1 second of slack can remain, so a second send may still start and then run another full cycle. The resulting worst-case blocking time for one `emitEach` call is therefore about 3,961,100 ms (about 66 minutes). That bound applies both to the submitting thread (client START, and FAIL when the job never starts) and to the JobManager thread (hook COMPLETE/FAIL/ABORT, and RUNNING heartbeats).
Coverage: `LineageRuntimeTest.skipsOutputsThatWouldStartAfterTheEventSetBudget` advances a test clock after the first successful `tryEmit` and asserts later outputs are not started; `LineageRuntimeTest.stopsTheEventSetAfterTheFirstFailedDelivery` covers stop-on-failure. Those tests do not assert the millisecond figure above; that figure comes from `eventSetBudgetNanos`.
**F5 (token key in the YAML example)**
The job `env {}` HOCON example correctly omits the token. The Flink cluster YAML example does not yet include `openlineage.auth_token`. I will add a placeholder key there in a follow-up commit (no real token, and it will stay out of the job example).
**F7 (packaging and E2E)**
On the current head, a JDK 17 run of `TestPackagedFlinkLineageHooksIT.packagedStarterReportsLineageSupported` passed (1/1).
`TestLineageSubmitIT` was rewritten as a forked-JVM parent-loader IT: the client still builds the graph through `FlinkLineageSupport.register`, which is the `execute(StreamGraph)` registration path. `StreamGraph` itself is not serializable, so the test compiles the `JobGraph` Flink would submit, copies `seatunnel-lineage-flink-*-shaded.jar` into a temporary `lib/`, and a child JVM whose parent classpath is Flink plus that jar deserializes and runs it with MiniCluster. It asserts the hook `CodeSource` is the copied shaded jar and that the stub receiver gets START and COMPLETE. The negative case `jobGraphWithoutTheLibJarCannotLoadTheHook` fails with `ClassNotFoundException`/`NoClassDefFoundError` for `LineageJobStatusHook`. Both tests passed on JDK 17 (2/2).
A full Docker/standalone Flink cluster preflight is not included in this PR; it remains a later step if needed.
**F2 (cluster-level control)**
Agreed that token protection is not a cluster-level kill switch. The JobManager still resolves non-sensitive fields with job/env/cluster precedence, so a job can still override enablement or the target URL. I will document this limit explicitly rather than add a new cluster-side setting that a job cannot override, unless you would rather have that control in this PR.
**F6 (Flink 1.13/1.15)**
Yes. In `FlinkExecution` the constructor calls `LineageConfig.rejectJobAuthToken` first, then `FlinkLineageSupport.isSupported()`, and only then `FlinkLineageSupport.resolveConfig` (`FlinkExecution.java:112-122`). On unsupported starters, illegal timeout/retry/URL values do not fail construction; a job-level auth token is still rejected. Tests: `FlinkLineageSupportTest.unsupportedStarterDoesNotFailConstructionWhenLineageOptionsAreIllegal` and `unsupportedStarterStillRejectsAJobAuthToken`.
Please take a look at `5cec184142` when convenient.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7363841654
Thanks @DanielLeens for the re-review on `29cadefcb`. The current head is `83b7efb382`.
**Terminal task registration:** Fixed in `83b7efb382`. `submitTerminal` (`LineageJobStatusHook.java:242-250`) now adds the `FutureTask` to `PENDING` before `scheduler().execute`. The worker `finally` no longer releases the pending task; `FutureTask.done()` (`:277-278`) removes it after the terminal state is published. If `execute` throws, the task is released immediately. The new test `registersTheTerminalTaskBeforeItCanComplete` (`LineageJobStatusHookTest.java:252`) holds the worker at the end of the callable's `finally`, while `isDone()` is still false, asserts the pending count is already `baseline + 1`, then releases and waits until the count returns to baseline and the event is delivered. The existing `productionCompletionReleasesPendingTerminalTasks` is unchanged.
**JobManager ownership policy:** I propose to ship this PR as the already documented limitation, and not add a cluster-level kill switch that a job cannot override for enablement or the target URL, unless maintainers ask for that control in this PR. The limit is documented in `docs/en/introduction/concepts/lineage.md:215-218` and `docs/zh/introduction/concepts/lineage.md:193`. The JobManager still re-resolves in `emit` (`LineageJobStatusHook.java:517-523`) from `config.toNonSensitiveMap()`, `FlinkClusterOptions.load()`, and `System.getenv()`. Without a token, a job can still override enablement and the URL; with a token, the URL/transport must match the trusted env/cluster values (`LineageConfig.receiverOption`). Tests `jobOverridesEnablementAndUrlWhenNoTokenIsConfigured` and `tokenRequiresTheJobReceiverToMatchTheTrustedValues` (`LineageJobStatusHookTest.java:421` and `:445`) lock that precedence. `deployedHookReResolvesWithJobLayerOverClusterAndEnvironment` (`:370`) serializes th
e hook, confirms the token is not in the graph, and checks that the restored hook re-resolves the same way.
The merge conflict with `dev` is still open and will be handled separately; the stack should resolve #12208 first. Please take a look at `83b7efb382` when convenient.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub)" <gi...@apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6051877583
@DanielLeens I have synced this PR with `dev@3ac7003fb` (442cc1901). Resolved the dependency/license conflicts.
Could you please re-review the updated head?
Validation on this head: Spotless, affected-module verify, 63 focused tests, and the existing ShadedArtifactIT (1/1) passed.
The local validation above is separate from the GitHub CI results, which are still pending for the updated head.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7238217227
Thanks, @SEZ9. A focused read of the unchanged head answers several of the confirmations: LineageConfig.java:57-63,96-111 caps timeout at 60000 ms and retries at 10; heartbeat interval is non-negative but has no additional upper cap. LineageRuntime.emitEach:80-99 has one event-set budget and stops after a failed delivery or before starting a later output past that budget; it is not simply an unlimited full retry cycle per output. That boundary is checked between sends, not an interrupt that truncates a send already in progress. LineageJobStatusHook.onFinished:110-117 explicitly owns completion for attached as well as detached jobs.
The source tree includes TestPackagedFlinkLineageHooksIT, and lineage.md:150-174 gives the separate shaded-artifact build/location; :206-209 distinguishes the client and JobManager configuration/token scopes. Those are authored/source facts, not executed packaging or Flink E2E results. The runtime resolve call at Hook:428-432 still passes the non-sensitive job config with the documented job/env/cluster precedence, so token protection must not be described as a universal cluster-level kill switch.
My previously reported blocker remains: submitTerminal adds every terminal Future to the static JobSenders.PENDING set (:243), while production completion does not remove it; removal is in the test/drain helper. The retention repair and its existing regression-test follow-up are still required. I have not marked that closed because other items improved or CI changed. Please keep an item-to-source/test mapping for the remainder rather than treating this discussion as full clearance.
Discussion/gate follow-up at unchanged head `7fd85ac0882a83203776be16262049275b73e99e`; base `dev`, compare `diverged`, ahead 43 / behind 91. No local build, tests, Docker or SeaTunnel job was run.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7363843504
Thanks @SEZ9 for the follow-up. The notes below are against the current head `83b7efb382`. The F5/F2 documentation is unchanged from `29cadefcb`; this head also adds the `submitTerminal` race fix and the F2 precedence tests.
**F5:** Yes. The wording is in "Events reported by Flink" / "Flink 上报的事件": English `docs/en/introduction/concepts/lineage.md:209-213` and Chinese `docs/zh/introduction/concepts/lineage.md:189-191`. The placeholder token is at English `:148` and `:151`, Chinese `:135` and `:138`. Please treat F5 as done.
**F2:** I propose to ship this PR as that documented limitation. I am not adding a cluster-side setting that a job cannot override for enablement or the target URL, unless you or other maintainers want that control in this PR. The wording is English `:215-218` and Chinese `:193`. JobManager `emit` (`LineageJobStatusHook.java:517-523`) still re-resolves with the job non-sensitive map as the highest-precedence layer. Without a token, a job can still override enablement and the URL; with a token, a differing URL is rejected. That precedence is locked by `jobOverridesEnablementAndUrlWhenNoTokenIsConfigured` and `tokenRequiresTheJobReceiverToMatchTheTrustedValues` (`LineageJobStatusHookTest.java:421` and `:445`).
**F3:** Timeout and retry already have upper bounds in `LineageConfig` (`:58`, `:63`, `:96-110`): `openlineage_timeout_ms` is 1..60000 and is rejected rather than clamped; `openlineage_retry_times` is 0..10. `openlineage_heartbeat_min_interval_ms` has no upper bound; values `< 0` are rejected, and `0` disables heartbeats (`LineageJobStatusHook.startHeartbeat`). They do not share a single JobManager thread: each hook has its own single-thread daemon scheduler (`LineageJobStatusHook` class javadoc `:58-61`, `JobSenders` `:318-325`). A large heartbeat interval only widens the gap between heartbeats; stall risk is already bounded by the timeout and retry caps. I do not plan to add a heartbeat upper cap in this PR.
**F4:** There is an event-set budget, not an unlimited full retry cycle per output. The formula is in `LineageRuntime.eventSetBudgetNanos` (`:130-137`): `(retryTimes + 1) * 3 * timeoutMs + backoff + 1000ms`. The budget is checked between sends and does not interrupt a send already in progress. After a full first cycle at max caps, about 1s of slack can remain, so a second send may start and the worst case is about two cycles (~66 minutes) on the submitting thread (client `START`, and `FAIL` when the job never starts) and on the JobManager thread (hook `COMPLETE`/`FAIL`/`ABORT`, and `RUNNING` heartbeats). Coverage: `LineageRuntimeTest.skipsOutputsThatWouldStartAfterTheEventSetBudget` and `stopsTheEventSetAfterTheFirstFailedDelivery` (`:120` and `:108`). The hook also has `skipsRemainingOutputsWhenTheReceiverIsUnreachable`. I am not changing this production behavior in this PR; tightening the slack so a second send cannot start in it can be a follow-up.
**F6:** Config is not fully resolved before `isSupported()`. `FlinkExecution.java:112-122` calls `LineageConfig.rejectJobAuthToken(envOptions)` first, then `FlinkLineageSupport.isSupported()`; unsupported starters only `warnIfEnabledButUnsupported` and do not resolve timeout/retry/URL. The supported path then calls `FlinkLineageSupport.resolveConfig`. Tests: `FlinkLineageSupportTest.unsupportedStarterDoesNotFailConstructionWhenLineageOptionsAreIllegal` and `unsupportedStarterStillRejectsAJobAuthToken` (`:169` and `:181`).
**F8:** The hook still emits a terminal event if an attached client dies or drops its connection. `onFinished` (`LineageJobStatusHook.java:111-119`) always submits `COMPLETE`; the client does not emit `COMPLETE`. Docs: English `:204-207`, Chinese `:185-187`. Test: `emitsCompleteWhenTheClientIsGoneAndStopsHeartbeats` (`LineageJobStatusHookTest.java:157`). If client death causes Flink to cancel the job, `onCanceled` emits `ABORT`, which is still a terminal event. A JobManager crash, or a job that never creates the hook, would not get a hook terminal event; that is a process-crash limitation I prefer to defer, not expand in this PR.
**F7:** `TestPackagedFlinkLineageHooksIT.packagedStarterReportsLineageSupported` (`:43`) opens `target/seatunnel-flink-20-starter.jar`, asserts it contains `FlinkLineageHooks.class`, and uses a child-first loader to call `isSupported()==true` so the common-module no-op copy is excluded. `TestLineageSubmitIT.executeStreamGraphReportsStartAndTerminalEvent` and `jobGraphWithoutTheLibJarCannotLoadTheHook` (`:71` and `:106`) go through the `FlinkLineageSupport.register` / `execute(StreamGraph)` registration path, compile a JobGraph, and run it in a child JVM with MiniCluster whose parent classpath is Flink plus a copied shaded jar; they assert `START`/`COMPLETE`, and `ClassNotFoundException`/`NoClassDefFoundError` when the lib jar is missing. A full Docker/standalone cluster preflight is still deferred.
**F10:** The docs already describe how to obtain the artifact, in "Installing the lineage artifact on the cluster" / "在集群上安装血缘产物": English `:153-180` and Chinese `:140-165` give the Maven coordinates (`classifier=shaded`), `./mvnw -pl seatunnel-lineage-flink -am package -DskipTests`, the path `seatunnel-lineage-flink/target/seatunnel-lineage-flink-<version>-shaded.jar`, and copying it to `$FLINK_HOME/lib` plus restarting the JobManager. There is no Apache release download URL yet, which matches the current `3.1.0-SNAPSHOT`. I am not adding a release-download sentence unless you want that in this PR.
Please take a look at `83b7efb382` when convenient.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7436801723
Thanks for laying out the remaining questions. On `83b7efb382fb`, F5 is addressed and F2 is still a maintainer policy decision. The precedence tests document what happens today, including the stricter rule when the JobManager holds a token, and do not give the operator an independent enablement control.
- F8: the terminal hook in the JobManager owns completion, failure and cancellation delivery after the attached client goes away. The completion test and terminal registration ordering cover that case. A JobManager process crash is a different boundary.
- F7: the packaged starter test opens the shaded starter and checks the actual hook class. The StreamGraph integration test registers the hook and executes the compiled JobGraph in a child MiniCluster, with a missing-lib negative case. It does not exercise distributed standalone deployment, and the canceled Build did not verify the packaged tests on this head.
- F3: configured timeout and retries are bounded per request, with heartbeats scheduled per hook. F4: the event-set deadline is checked between sends and does not preempt a send already running, so the documentation should preserve that distinction.
- F6: unsupported starters warn or reject the forbidden job token before attempting full supported config resolution. F10: the deployment guide names the shaded artifact and cluster install path; a release download is still outside the current snapshot evidence.
Please settle F2 and resolve the conflict before relying on a fresh complete Build.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7409628205
The complete status list is in the [author's earlier comment](https://github.com/apache/seatunnel/pull/12210#issuecomment-7363843504). On `83b7efb382fb` I verified the placeholder token and the separate client and JobManager credential-resolution descriptions in both guides. That addresses F5. The JobManager precedence tests exercise unauthenticated job overrides and reject a conflicting receiver when trusted credentials are configured. The guide also explicitly says administrators have no cluster-level switch that overrides all jobs. F2 is a documented deployment limitation and still needs the maintainers' decision on the scope of this PR. [English guide](https://github.com/apache/seatunnel/blob/83b7efb382fb13341fa10527dfa7f59b9dae4ebe/docs/en/introduction/concepts/lineage.md) · [Chinese guide](https://github.com/apache/seatunnel/blob/83b7efb382fb13341fa10527dfa7f59b9dae4ebe/docs/zh/introduction/concepts/lineage.md)
The earlier source review covers the terminal registration change and the packaged coverage boundary. The current PR also has a merge conflict, and the latest fork run I could verify was cancelled. A fresh, complete Build on the reconciled head is still needed. [Source review](https://github.com/apache/seatunnel/pull/12210#pullrequestreview-6163306938) · [Fork run](https://github.com/88fantasy/seatunnel/actions/runs/46858214739)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7392304005
@88fantasy thanks for the clear notes against `83b7efb382`.
**F5:** Thanks for pointing to the wording in the "Events reported by Flink" section of the English and Chinese docs, and to the placeholder token. I have not yet checked this against the diff at this head, so I will leave F5 open until I have.
**F2:** I am open to shipping this as a documented limitation, without a cluster-side setting that a job cannot override in this PR. I cannot close it on the description alone, though. I still need to check the doc wording and what `jobOverridesEnablementAndUrlWhenNoTokenIsConfigured` and `tokenRequiresTheJobReceiverToMatchTheTrustedValues` actually assert in the diff.
Two things would help:
1. Your comment is cut off for me right after the two test names, at an opening "(`". Could you repost the rest?
2. The part I can see covers only F5 and F2. If the missing part did not cover F3, F4, F6, F7, F8 and F10, please add a one-line status for each (fixed, documented, or deferred).
<!-- streview-comment:2814 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7305511040
@SEZ9 The F5/F2 documentation follow-up is in `29cadefcb`. The Flink cluster YAML example now includes a placeholder `openlineage.auth_token` (not a real credential), and the docs now state that token protection is not a cluster-level kill switch. Job `env {}` examples still omit the token. No production code, tests, or caps were changed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7426705714
Thanks for the update on `83b7efb382fb`. Here is where the previous points stand.
**Addressed**
- **F5**: Both the English and Chinese guides now include the placeholder token and describe client and JobManager credential resolution separately. This one is closed.
**Still open**
- **F2**: The JobManager precedence tests cover unauthenticated job overrides and reject a conflicting receiver when trusted credentials are configured. The guide also states that administrators have no cluster-level switch that overrides all jobs. That makes F2 a documented deployment limitation rather than a fix. Whether that is acceptable for this PR is a maintainer scope decision that has not been made yet, so F2 stays open until then.
**Status I can't confirm from this thread**
- **F8 and F7**: The earlier source review (6163306938) covers the terminal registration change and the packaged coverage boundary. Could you say briefly, for the reconciled head, what happens to the terminal event when an attached client dies or disconnects (F8)? For F7, please say what now verifies the packaged flink-20 starter jar and the `execute(StreamGraph)` path, and what remains uncovered.
- **F3, F4, F6 and F10**: Your status list (7363843504) is not restated here. Could you give a one-line status for each against the reconciled head, pointing to the change or test that covers it?
**Before this can move forward**
1. Resolve the current merge conflict.
2. Get a fresh, complete Build on the reconciled head, since the latest fork run that could be verified (46858214739) was cancelled.
<!-- streview-comment:2846 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6558731863
Thanks for the review. I have synced this branch with `dev` and resolved the conflicts in the English and Chinese incompatible-change notes, retaining both the upstream entries and the OpenLineage migration guidance. The current head is `5e4e59887`; GitHub now reports it as mergeable.
The Flink follow-up re-resolves the complete lineage configuration on the execution side, handles listener-registration failures with an ABORT event, and adds shaded-artifact credential-routing coverage.
After the sync, 26 focused configuration and Markdown tests passed locally with no failures, errors, or skips. Earlier validation included Flink 1.20.4 with Paimon readback and a credential-redirection rejection scenario. The current-head fork [Build](https://github.com/88fantasy/seatunnel/actions/runs/41311817345) is queued; its result is still pending. A maintainer approval is also required.
@nzw921rx Could you please review the Flink integration and, once CI is green and the required approval is in place, consider it for merge? This PR implements #12206 as part of #12207 and builds on the shared lineage foundation in #12208. The Zeta integration is tracked separately in #12209. Thank you for your time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6558604117
Thanks for the review. I have pushed `1ff9f8231` to re-resolve the complete lineage configuration on the Flink execution side and handle listener-registration failures with an ABORT event.
The update also adds credential-routing coverage for the shaded artifact and replaces timing-based negative assertions with queue-based checks.
Locally, the full reactor `verify` completed with tests skipped, followed by 66 focused tests with no failures, errors, or skips, including two shaded-artifact integration tests. I also validated attached and detached Flink 1.20.4 jobs with Paimon readback, plus a credential-redirection rejection scenario. All six jobs finished, with 10 rows read back in each scenario.
The PR currently has conflicts in the English and Chinese incompatible-change notes against the latest `dev`. CI checks for this commit have not yet been reported.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7296075317
Here is where the earlier review points stand after a source read of the unchanged head `7fd85ac0882a83203776be16262049275b73e99e`. Nothing was built or run for this pass, so these are source facts, not test results.
**Answered in source**
- **F8 (terminal event for attached jobs):** `LineageJobStatusHook.onFinished` now explicitly owns completion for attached as well as detached jobs.
- **F10 (shaded jar):** `lineage.md` now describes the separate shaded-artifact build and location.
**Partly answered, with a remaining ask**
- **F3 (one job stalling the others):** `LineageConfig` caps the timeout at 60000 ms and retries at 10, but `openlineage_heartbeat_min_interval_ms` is only checked as non-negative. Please either add an upper bound or explain why a very large value cannot hold up other jobs' sends on a session JobManager.
- **F4 (serial sends, no deadline):** `LineageRuntime.emitEach` now has one budget for the event set and stops after a failed delivery, or before starting a later output past the budget. The budget is checked between sends and does not interrupt a send in progress. Please state the resulting worst-case blocking time on the submitting thread and on the JobManager thread, and point to the test that covers it.
- **F5 (config scopes in docs):** `lineage.md` now distinguishes the client and JobManager configuration/token scopes. Please confirm whether the YAML example now includes the token key.
- **F7 (packaging and E2E):** `TestPackagedFlinkLineageHooksIT` is in the source tree, but there is no executed result for it. Please share a run of it, and say whether a Flink E2E for the `execute(StreamGraph)` path is included or planned.
**Still open**
- **F2 (cluster-level control):** The JobManager-side resolve still passes the non-sensitive job config with job/env/cluster precedence, so the token protection is not a cluster-level kill switch. Please either add a cluster-side setting that a job cannot override (to disable JobManager lineage calls or restrict the target URL), or document this limit explicitly.
- **F6 (Flink 1.13/1.15):** This read did not cover it. Please confirm whether `FlinkExecution` now checks `isSupported()` before resolving the lineage config, and point to the source or test that shows it.
A short item-to-source/test mapping for the remaining points would make the next pass quick.
<!-- streview-comment:2756 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub) via commits" <co...@seatunnel.apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6567393679
Thanks @DanielLeens for the detailed review. I have pushed the fixes for the four blocking findings in `6b032cf8f`:
- **Issue 3:** The heartbeat tests release the blocked send and clean up the callback with bounded waits. They no longer depend on the one-second elapsed-time assertion.
- **Issue 5:** The shaded-artifact test redirects child output to a temporary file, waits with a deadline, and uses bounded process cleanup. It also covers a stuck driver and a process that cannot be stopped.
- **Issue 4:** Flink no longer attaches job-wide accumulator totals to individual output datasets. This applies to single-output jobs as well, because the available information does not reliably establish ownership of the totals. The English and Chinese docs describe this behavior.
- **Issue 6:** Flink isolates ordinary dataset extraction failures per connector, logs the connector type and position without configuration values or exception messages, and continues preparing the job. A test uses a real SPI-loaded extractor that throws during `FlinkExecution` construction; the plugin processors themselves are test doubles.
On this commit, JDK 11 Spotless and the full-reactor `-DskipTests verify` passed. The focused run passed **94 tests**, including **4 shaded-artifact integration tests**, with no failures or skips.
The current-head fork [Build](https://github.com/88fantasy/seatunnel/actions/runs/41375997249) is still in progress. Earlier isolated Flink tests covered attached, detached and two-sink Paimon jobs, but those tests were not repeated on this commit.
The non-blocking timeout wording and retry-assertion findings, as well as alignment with the newer shared VM-error policy, remain follow-up work. Could you please re-review the updated head?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6538129276
The exact-head Build is now successful, clearing the earlier timeout/cancelled-job gate. My Flink-specific source conclusion remains clear; the three explicitly non-blocking recommendations in the full review remain non-blocking. The separate stack dependency on #12208 and #12209 is not cleared by this green check, and the unresolved source requests on #12209 still need resolution before the stack can merge. No redundant retry or drift-only sync is requested.
Checked 2026-10-31T03:00:23.564475+00:00; unchanged head `37fdcea355ea06d29351d31dda3ab954020be70b`. [Signal pull request update](https://github.com/apache/seatunnel/actions/runs/40285632639/job/121481017305)=`SUCCESS`; [Build](https://github.com/apache/seatunnel/runs/123975538879)=`SUCCESS`.
This is a discussion/CI clarification, not another full source review or an effective maintainer approval. Daniel has READ repository permission; a write-capable maintainer owns required approval/dismissal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "88fantasy (via GitHub)" <gi...@apache.org>.
88fantasy commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6258986169
Thanks @DanielLeens for the review.
Addressed on tip 938ac20c7:
1. Merged onto the latest #12208 (openlineage-core @ 4bccb0e55); docs Markdown issues inherited from the older stack should be resolved.
2. Added ASF license headers to both test META-INF/services LineageBackend resources.
3. Renamed ShadedArtifactIT → TestShadedArtifactIT (and updated references) so it satisfies both the Test* UT naming rule and failsafe *IT.
4. registerJobStatusHook is now try/caught in FlinkLineageHooks.register; on failure we emitAbort for the already-sent START and return false.
Please re-review when convenient. CI has been re-triggered on the fork.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-6473860933
Thanks for the contribution. The CI fact cited in my previous conclusion has changed; this follow-up updates that gate on the unchanged reviewed head, without issuing another full source review.
Gate snapshot (2026-10-28T15:56:27+00:00), head `37fdcea355ea06d29351d31dda3ab954020be70b`: [Build](https://github.com/apache/seatunnel/runs/121485256401) is `TIMED_OUT`.
The blocking jobs are [Run / all-connectors-it-3 (11, ubuntu-latest)](https://github.com/88fantasy/seatunnel/actions/runs/40285628322/job/121449346508) `cancelled`.
The returned jobs are cancelled; no product assertion failure is established by that state. Resume/rerun the cancelled required job through the existing workflow. There is no demonstrated upstream source fix for a cancelled execution, so a base sync alone is not a justified remedy.
My [previous source conclusion](https://github.com/apache/seatunnel/pull/12210#pullrequestreview-5649152188) remains clear for the reviewed scope. CI is not being passed by inference, and this follow-up is not an effective approval.
Comparison recorded in this scan: base `dev`, `diverged`, ahead 23 / behind 46, no merge conflict. Branch drift is metadata here and is not an additional sync request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7230154790
Thanks for the coordinated update. Here is where the earlier points stand based on the latest review pass, which traced the new submission and terminal-delivery path.
**Look addressed, pending your confirmation**
- **F6 (resolution before `isSupported()`):** the capability check is now described as running before full resolution (`FlinkExecution.java:112-124`). Please confirm that Flink 1.13/1.15 jobs can no longer fail at construction over lineage settings they never use.
- **F8 (no terminal event when the client dies):** the path now shows `onFinished/onFailed/onCanceled -> stopHeartbeat -> submitTerminal` on the JobManager, with the client emitting no COMPLETE. Please confirm this also holds for attached submissions, since only the detached case is given as an example.
**Partially addressed, need details**
- **F2 (job layer overriding cluster config):** the job-level token is now rejected, the token is stripped from the hook, and the JobManager rebuilds config with local token/receiver checks. Can a cluster admin now fully switch off JobManager-side lineage calls, and do the receiver checks keep sends away from a job-chosen URL?
- **F3 (one job stalling others):** there is now one daemon scheduler per job, which should remove the shared-thread coupling. Do `openlineage_timeout_ms`, `openlineage_retry_times` and `openlineage_heartbeat_min_interval_ms` now have upper bounds, and if so, what are they?
- **F4 (serial sends, no overall deadline):** delivery still goes through `emitEach` with bounded retry. Is it still one full retry cycle per output dataset, and is there an overall deadline for the START emission on the submitting thread?
**Not visible in the material I have, please point me to the change**
- **F5:** does the Flink section of `docs/en/introduction/concepts/lineage.md` now say that the client and the JobManager each resolve lineage config and token from their own configuration directory and environment, and does the YAML example include the token key?
- **F7:** is there a check that the packaged flink-20 starter jar contains the 1.20 copy of `FlinkLineageHooks`, and a Flink E2E covering the `execute(StreamGraph)` submission path?
- **F10:** do the docs now say where to get `seatunnel-lineage-flink-<version>-shaded.jar`, or does the binary distribution now ship it?
A short pointer per item to the relevant change or test is enough.
<!-- streview-comment:2666 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7362295819
Thanks for the documentation update on the two process-local lineage configurations and token handling. Here is where the earlier review points stand as of `29cadefcb2977fccb1b22c1b2b39fc0537b9a333`.
**Addressed**
- The guide now explains that the client and the JobManager each resolve lineage config and token from their own configuration directory and environment, and that the cluster token stays out of submitted job settings. Could you confirm whether the YAML example now includes the token key?
**Still open**
- **Terminal task registration race.** `submitTerminal` still calls the scheduler before inserting the returned Future into the static pending set, so a task that finishes first can be left in the session JobManager set. The documentation change does not affect that ordering. Please register ownership before execution, remove it from a completion path that runs after the future transitions terminal, and add a forced-order test rather than relying on repeated fast submissions.
- **JobManager-side ownership of enablement and receiver.** The guides now describe the job-first precedence and the credential-specific receiver restriction, which is useful. The runtime behaviour is unchanged, though: in the documented unpinned cases an operator still has no JobManager-side override that submitted options cannot change. Please decide whether administrators can disable the hook or enforce the allowed receiver at that boundary, implement it, and cover the chosen precedence in the deployed-hook tests.
**Status needed**
The thread does not show whether these were changed, so please say for each whether it is fixed, and how, or still pending:
- **Unbounded per-job values:** upper bounds for `openlineage_timeout_ms`, `openlineage_retry_times` and `openlineage_heartbeat_min_interval_ms`, so one job cannot stall lineage for other jobs on a session JobManager.
- **Serial sends:** events go out one full retry cycle per output dataset, with no overall deadline, on the submitting thread and on the JobManager side.
- **Flink 1.13/1.15 compatibility:** `FlinkExecution` resolves the lineage config before checking `isSupported()`, so those jobs can fail at construction over settings those starters never use.
- **Missing terminal event:** an attached submission silences the hook's COMPLETE, so a client that dies or loses its connection leaves the run open.
- **Test coverage:** a check that the packaged flink-20 starter jar contains the 1.20 copy of `FlinkLineageHooks`, and a Flink E2E for the `execute(StreamGraph)` submission path.
- **Shaded jar availability:** the docs make `seatunnel-lineage-flink-<version>-shaded.jar` a hard prerequisite, but they should also say where to get it, or the binary distribution should ship it.
<!-- streview-comment:2798 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Flink] Report table-level lineage from the Flink starter [seatunnel]
Posted by "SEZ9 (via GitHub) via commits" <co...@seatunnel.apache.org>.
SEZ9 commented on PR #12210:
URL: https://github.com/apache/seatunnel/pull/12210#issuecomment-7326549848
@88fantasy thanks for the follow-up in `29cadefcb`. I'm going by your description here, not a fresh pass over the diff.
**F5:** The placeholder `openlineage.auth_token` in the Flink cluster YAML example covers the missing-token-key half, and keeping the token out of the job `env {}` examples is fine. The other half is not mentioned in your comment: does the Flink section now say that the client and the JobManager each resolve lineage config and token from their own configuration directory and environment? If it does, please point me to the wording and I'll treat F5 as done; if not, please add it.
**F2:** Stating that token protection is not a cluster-level kill switch documents the limitation, but with no production code changed the behavior is the same. The JobManager still takes the client's resolved values as the highest-precedence "job" layer, so a cluster admin cannot switch off JobManager-side lineage calls or keep them away from a job-chosen URL. F2 therefore stays open as a behavior finding. Do you plan to add a cluster-side override in this PR, or are you proposing to ship it as a documented limitation? If the latter, please say so explicitly so it can be decided on that basis.
**Still open:** Since no production code, tests, or caps changed, the rest are as they were:
- **F3:** no upper bounds on `openlineage_timeout_ms`, `openlineage_retry_times` and `openlineage_heartbeat_min_interval_ms`, which share a single JobManager thread.
- **F4:** serial sends with one full retry cycle per output dataset and no overall deadline.
- **F6:** lineage config is resolved before `isSupported()`, which affects Flink 1.13/1.15 jobs.
- **F8:** no terminal event when an attached client dies or loses its connection.
- **F7:** no check that the packaged flink-20 starter jar contains the 1.20 `FlinkLineageHooks`, and no Flink E2E for the `execute(StreamGraph)` path.
- **F10:** the docs require `seatunnel-lineage-flink-<version>-shaded.jar` but do not say where to get it.
Could you say which of these you intend to address in this PR and which you'd prefer to defer?
<!-- streview-comment:2763 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org