Skip to content

[Doc][Architecture] Add the missing source-file section to the zh resource-management page - #13119

Open
lxcxjxhx wants to merge 5 commits into
apache:devfrom
lxcxjxhx:docs/zh-key-source-files
Open

lxcxjxhx wants to merge 5 commits into
apache:devfrom
lxcxjxhx:docs/zh-key-source-files

Conversation

@lxcxjxhx

@lxcxjxhx lxcxjxhx commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What

docs/zh/architecture/engine/resource-management.md stops at ## 12. 参考资料, so it has no source-file list, while its docs/en counterpart carries ### Key Source Files for the classes that implement the described behaviour.

This branch originally covered four pages. Upstream #13282 (be4b850, merged 2026-11-25) added the same section to the other three, so the diff here is now the one page it left, plus nothing else.

page added
architecture/engine/resource-management.md 4 classes (ResourceManager, AbstractResourceManager, SlotProfile, WorkerProfile)

The links are absolute https://github.com/apache/seatunnel/blob/dev/... URLs rather than the relative paths the en page uses. The zh docs are synchronized into seatunnel-website, which does not contain the source tree, so a relative link only resolves where the markdown is rendered next to a checkout.

Why this is an omission, not a translation choice

The zh tree already translates this section on other pages — zh/architecture/api-design/catalog-table.md and zh/architecture/api-design/translation-layer.md both have ### 关键源码文件, and #13282 has since added it to three more. The section name and the shape of the link list are established zh layout; this page simply lost it.

The four classes are the same four the en page links, in the same order.

What this PR does not claim

  • It does not make en/zh source links globally consistent. docs/zh/architecture/api-design/source-architecture.md still lacks the four .java links that docs/en/.../source-architecture.md carries in its 3.4 Code References. That page has no equivalent section, so closing the gap is a structural decision rather than a list to append — left for a separate PR.
  • It does not touch engine-architecture.md. Upstream added that section itself; this branch keeps the upstream version.

Checks run

  • The 4 added URLs resolve: git cat-file -e on each of the four paths at dev c0c6d04 returns 0.
  • 1 file, +8/−0, no prose outside the added subsection changes.
  • Not run: the docusaurus build (no node toolchain on this machine).

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @lxcxjxhx, for restoring the missing source-file sections on the Chinese architecture pages. The structural en/zh comparison in the description is a nice way to find this kind of drift, and keeping the change purely additive makes it easy to verify.

What Problem Does This PR Solve?

User pain: five docs/zh/architecture pages end their reference section without the "Key Source Files" list that the English pages carry, so Chinese readers lose the pointers to the implementing classes.

Approach: add the translated "Key Source Files" subsection (plus the translated "Example Implementations" list on multi-table.md) to the five zh pages, copying the link targets from the English pages.

In one sentence: documentation-only (+41/-0); no code, config or build impact.

1. Code Change Review

1.1 Core Logic Analysis

Verified against current dev:

  • Each added list is identical in targets and order to its English counterpart: docs/en/architecture/engine/dag-execution.md:696-702, engine/engine-architecture.md:632-636, engine/resource-management.md:485-490, fault-tolerance/checkpoint-mechanism.md:728-732, features/multi-table.md:784-793.
  • All 15 linked or quoted source paths exist on dev (5 DAG classes, 4 resource-manager classes, 3 checkpoint classes, 3 multi-table classes, plus the package/module paths for engine core, DAG, checkpoint, connector-cdc-mysql and connector-jdbc).
  • docs/en/architecture/... and docs/zh/architecture/... are at the same depth, so the ../../../../ relative links resolve to the same files.
  • The translated heading and link style match the existing zh precedent in docs/zh/architecture/api-design/catalog-table.md:385 and api-design/translation-layer.md:260.

1.2 Compatibility Impact

None.

1.3 Performance / Side Effects

None. Existing content is untouched; the new subsections are inserted under the existing "References" headings, before the "Further Reading" / "Academic Papers" subsections, matching the English ordering.

1.4 Error Handling and Logging

Issue 1: Localize the inline labels for consistency with the existing zh page (Low, non-blocking).

  • Location: docs/zh/architecture/engine/engine-architecture.md:519-521, docs/zh/architecture/features/multi-table.md:529-530.
  • Problem: labels such as Engine Core:, DAG:, Checkpoint:, MySQL CDC Source: and JDBC Sink: stay in English with an ASCII colon, while translation-layer.md:262-264 uses translated labels with a full-width colon (see the Flink translation-layer label at line 262).
  • Risk: purely stylistic.
  • Best improvement: optionally translate the labels the same way translation-layer.md does; the paths themselves should stay as they are.
  • Raised by another reviewer: no.

2. Code Quality Assessment

2.1 Coding Standards

Follows the existing zh layout and Markdown style.

2.2 Test Coverage and Test Stability

Not applicable (documentation only). Stability: Stable. As the description notes, the Docusaurus build was not run locally; links into source files follow the exact pattern already used by the English pages and the two existing zh pages.

2.3 Documentation Updates

This PR is itself the en/zh parity fix. The remaining untranslated headings in multi-table.md are correctly left for a separate PR.

3. Architectural Soundness

Not applicable.

4. Issue Summary

No. Issue Location Severity
1 Optionally localize inline labels docs/zh/architecture/engine/engine-architecture.md:519 Low (non-blocking)

5. Merge Recommendation

Conclusion: Ready to merge

No blockers; Issue 1 is optional polish. CI: no check runs are reported for this head and no workflow run exists in your fork; enabling GitHub Actions on your fork lets the Build workflow (including the documentation checks) run. For a purely additive docs change that mirrors existing link patterns, I do not consider that a blocker. The branch is up to date with dev.

@DanielLeens

Copy link
Copy Markdown
Contributor

Good job.

Thanks a lot for your valuable contribution to Apache SeaTunnel!

To pass the automated CI checks for this PR, could you please enable CI workflows in your forked repository first? You can refer to the check run link below as a reference for the required CI configuration https://github.com/apache/seatunnel/blob/dev/.github/workflows/build_main.yml (please enable Actions at https://github.com/lxcxjxhx/seatunnel/actions , then push an empty commit or re-run so the Build check is reported on this PR).

Note: my approval above is a technical review of the documentation change only; this PR currently reports no CI checks at all, so the Build check still needs to run and pass before merge.

If you run into any trouble enabling CI or encounter related errors during the process, feel free to leave a comment here. Contributors are always ready to offer help~

image

@lxcxjxhx

lxcxjxhx commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review and the pointer, @DanielLeens.

The fork's Actions were the reason no check appeared: actions/permissions already reported enabled: true, but actions/workflows still reported total_count: 0, so a plain push scheduled nothing and workflow run returned 404. Re-issuing PUT /repos/{owner}/{repo}/actions/permissions registered the workflows, and Build is now running on this branch (workflow_dispatch, run 41756137043). I pushed an empty commit as well for the push-triggered path.

While I was at it I dispatched the same Build for my other three open doc PRs (#13113, #13117, #13123) — they had the same silent no-CI situation. I'll report back if anything fails on my side.

@lxcxjxhx

lxcxjxhx commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up with the evidence, because the fork side is now clean but the check still does not appear on the PR.

Fork side — done. Actions were indeed not registered (actions/workflows reported total_count: 0 even though actions/permissions said enabled: true). Re-issuing the PUT registered all 20 workflows, and Build has now completed successfully on all four of my doc branches:

branch run result
docs/zh-key-source-files (#13119) 41756137043 success
docs/fix-multimodal-anchor (#13123) 41756226722 success
docs/mem0-sink-options (#13113) 41756367300 success
docs/fix-changelog-table (#13117) 41756376318 success

Base repo side — waiting on approval. The PR signal run for this PR (41755795271, head 6bb003de) is action_required with zero jobs: GitHub holds workflows for a first-time contributor until a maintainer approves them. That breaks the chain the repo relies on — notify_test_workflow.yml triggers on workflow_run: PR signal completed and is what creates the initial Build check run, and update_build_status.yml can only patch an existing one (it logs Skip PR: no eligible Build check run and returns). So the scheduled updater cannot bootstrap the check either.

Two of my PRs are in that state right now (#13119 and #13123). If you click "Approve and run workflows" on them, the signal will complete, the Build check will be created, and the updater will adopt the green fork run on its next 15-minute tick. I have no way to approve my own pending run.

Thanks again for walking me through the setup — the fork-side fix is recorded for the rest of my PRs here.

@DanielLeens

Copy link
Copy Markdown
Contributor

Thanks @lxcxjxhx, and thanks for digging into this so carefully. Your analysis matches what I see:

So there is nothing more to do on your side, and no new commit is needed. I only have read access here, so I cannot click "Approve and run workflows" myself; a committer with write access needs to approve the pending workflow run on this PR (and on #13123). After that the Build check should attach and pick up your green fork run.

My approval of the doc change stands for this head. Thanks again for the patience and the clear write-up!

@DanielLeens

Copy link
Copy Markdown
Contributor

The CI fact cited previously has changed: the PR signal succeeded and Apache Build is now green on this head. The earlier pending-workflow approval/check-adoption instruction is obsolete. My existing technical approval stands, with no additional source commit requested. A write-capable maintainer still owns effective approval and merge.

This is a current-gate clarification on an unchanged head, not another full source review. No local runtime testing was performed. Daniel has READ permission; a write-capable maintainer owns the effective approval/dismissal and merge gate.

@lxcxjxhx

Copy link
Copy Markdown
Contributor Author

Confirmed on my side: the approval sits on the current head (78a6e853), and nothing was pushed after it — so the reviewed head and the gate you mention are the same commit. No further action from me; this just needs a write-capable approval.

@SEZ9 SEZ9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. I reviewed the latest head 78a6e853c848.

What this PR fixes

  • User pain: Five zh architecture pages (dag-execution.md, engine-architecture.md, resource-management.md, checkpoint-mechanism.md, multi-table.md) ended their References section without the Key Source Files list their en counterparts carry, so Chinese readers had no pointer from the design text to the implementing classes.
  • Fix approach: A docs-only, purely additive change that adds the translated Key Source Files subsection to each of the five pages, plus the translated Example Implementations subsection in multi-table.md, copying the 15 relative source links and 5 plain-text paths unchanged from the en pages.
  • One-line summary: The content is correct and safe to merge. I checked that all 15 link targets and all 5 plain-text paths exist at this head, that the added lists match the en sections line for line (e.g. docs/zh/architecture/engine/dag-execution.md:572-576 against en :698-702), and that the Key Source Files heading is now present on 7 en and 7 zh pages. Only LOW items remain:
  • (1) the description's "after: 0 pages with en/zh source-link drift" does not hold, because zh engine-architecture.md (edited here), source-architecture.md and overview.md have no relative source links while en has 5, 4 and 9;
  • (2) the new links are unchecked by CI, since .dlc.json:46 ignores every src/main/java/ link and the dead-link job is continue-on-error: true (backend.yml:152), and the ../../../../ paths resolve in the GitHub tree but not from the directories tools/documents/sync.sh copies the docs into;
  • (3) docs/zh/architecture/features/multi-table.md:521 adds the subsections after the old placeholder sentence at line 519, which still sends readers to the "Related Resources" chapter. One further cosmetic nit: labels such as - Engine Core: ... at docs/zh/architecture/engine/engine-architecture.md:519 stay in English with half-width colons, whereas the precedent cited in the description, zh translation-layer.md:262, uses a translated label with a full-width colon.

Findings

Issue 1: The description's "after: 0 pages with en/zh source-link drift" does not hold: zh engine-architecture.md and zh source-architecture.md still lack source links that their en counterparts carry.

  • Location: docs/zh/architecture/engine/engine-architecture.md:519
  • Why it matters: I checked every target this PR adds and all of them exist on disk (15 .java links and 5 directory paths), so the added content is correct. The parity claim in the description is not.
  • docs/en/architecture/engine/engine-architecture.md has five inline source links at lines 116, 139, 160, 161 and 441 (CoordinatorService, JobMaster, ResourceManager, AbstractResourceManager, CheckpointCoordinator). The zh page has none: its only ../../../ reference is the image at line 83. The three lines this PR adds there are backticked package paths, not links, so that page is still en=5 / zh=0 on source links.
  • docs/en/architecture/api-design/source-architecture.md:510-521 has a ### 3.4 Code References block with four API links and three example-implementation paths. The zh page goes from section 3.3 (line 236) straight to section 4 (line 247). The zh sibling sink-architecture.md:216-227 already translates the equivalent block for sinks, so this is the same kind of omission this PR fixes elsewhere.
  • Impact: a zh reader of the engine and source pages still cannot jump to the implementing classes, and the description overstates what was achieved.
  • Fix: either add these two blocks to the zh pages in this PR (the relative paths can be copied unchanged, as you did for the other five), or reword the description to say parity is reached for the Key Source Files subsection only and list these two pages as a follow-up.
  • Evidence: docs/zh/architecture/engine/engine-architecture.md:521 - Checkpoint: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/; `docs/zh/architecture/engine/engine-architecture.md:520 - DAG: `seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/; docs/zh/architecture/engine/engine-architecture.md:517 ### 关键源码文件
  • Suggested fix: Thanks for restoring this section; I checked all the added link targets and they exist. One gap against the "0 pages with source-link drift" statement: the en version of this page also has five inline source links (en lines 116, 139, 160, 161, 441: CoordinatorService, JobMaster, ResourceManager, AbstractResourceManager, CheckpointCoordinator) that this zh page still lacks. Likewise en api-design/source-architecture.md:510-521 (### 3.4 Code References) has no zh counterpart, although zh sink-architecture.md:216-227 already translates the equivalent block for sinks. Could you either add those two blocks in this PR, or narrow the claim in the description and note them as a follow-up?
  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Compare docs/en/architecture/engine/engine-architecture.md (5 matches for .java]() with docs/zh/architecture/engine/engine-architecture.md at head 78a6e85 (0 matches). Compare docs/en/architecture/api-design/source-architecture.md:510-521 with docs/zh/architecture/api-design/source-architecture.md:236-247 (no section 3.4). Any en/zh scan that counts links to source files still reports these two pages as drifted, contradicting "after: 0 pages".

Issue 2: The 15 new relative source links are valid at this head, but no CI job checks them and the "same depth" argument holds only for GitHub rendering.

  • Location: docs/zh/architecture/engine/dag-execution.md:572
  • Why it matters: I checked every added target against the tree: all 15 .java files and all 5 directory paths exist at this head, so the links work when the pages are viewed on GitHub.
  • .dlc.json:46 ignores every link matching src/main/java/, and the Dead links job in .github/workflows/backend.yml runs markdown-link-check -c .dlc.json, so it skips all of these links. That job is also continue-on-error: true (line 152).
  • A later move or rename of, say, TaskGroupDefaultImpl or CheckpointStorage will therefore break these links in both locales with no CI signal; the existence check in the description is a one-time manual check.
  • tools/documents/sync.sh:32-34 copies en to docs and zh to i18n/zh-CN/docusaurus-plugin-content-docs/current in the website repo, so on the published site the two trees are not at the same depth.
  • The script syncs only docs, images and the sidebar, so four .. segments are unlikely to reach these Java files from either location. I have not opened the website's Docusaurus config, so I cannot say how the links render there.
  • This is the same convention that zh catalog-table.md:387-391 and en catalog-table.md:665-669 already use, so I am not asking for a different link form in this PR; that would reintroduce en/zh drift.
  • Fix: please qualify the "resolve to the same files" statement in the description as GitHub-only, and consider a follow-up that moves both locales to absolute https://github.com/apache/seatunnel/blob/dev/... URLs.
  • Evidence: docs/zh/architecture/fault-tolerance/checkpoint-mechanism.md:524 - [CheckpointStorage.java](../../../../seatunnel-engine/seatunnel-engine-storage/checkpoint-storage-api/src/main/java/org/apache/seatunnel/engine/checkpoint/storage/api/CheckpointStorage.java); docs/zh/architecture/engine/resource-management.md:510 - [ResourceManager.java](../../../../seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/resourcemanager/ResourceManager.java)
  • Suggested fix: I confirmed that all 15 linked files and the 5 directory paths added in this PR exist at this head, so these work on GitHub. Two caveats, neither blocking: .dlc.json:46 ignores every src/main/java/ link, so nothing in CI will catch these going stale after a refactor; and tools/documents/sync.sh:34 places zh under i18n/zh-CN/docusaurus-plugin-content-docs/current on the website, so the "same depth as en" argument holds only for the GitHub view. Since this mirrors the existing en and zh catalog-table.md convention, I would keep the link form as is here. Could you note the GitHub-only scope in the description? A follow-up moving both locales to absolute GitHub URLs would be welcome.
  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Rename or move, for example, seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/execution/TaskGroupDefaultImpl.java. The link at docs/zh/architecture/engine/dag-execution.md:576 (and its en twin at line 702) becomes dead, and the Dead links job still passes because the URL matches the .dlc.json:46 ignore pattern.

Issue 3: In zh multi-table.md the new subsections are appended after a placeholder sentence that only made sense while the References section was empty.

  • Location: docs/zh/architecture/features/multi-table.md:523
  • Why it matters: Before this PR, section 14 of the zh page contained a single sentence (line 519) telling readers to continue from the "Related Resources" chapter for more on schema, sink semantics and DAG execution.
  • That sentence stood in for an otherwise empty References section. En section 14 (docs/en/architecture/features/multi-table.md:782-793) has no such sentence and goes straight into Key Source Files and Example Implementations.
  • The PR keeps the sentence and adds both subsections below it, so the section first sends the reader to another chapter and then lists the references itself.
  • Impact: cosmetic only, but it leaves this page structurally different from en and from the other four pages in this PR, where the subsection directly follows the section heading.
  • Removing the line means the PR is no longer purely additive, as the description states, but dropping one placeholder that the new content replaces is the consistent outcome.
  • Fix: delete line 519 and its trailing blank line so the Key Source Files heading follows the section 14 heading directly, as on the en page.
  • Evidence: docs/zh/architecture/features/multi-table.md:529 - MySQL CDC Source: seatunnel-connectors-v2/connector-cdc/connector-cdc-mysql/``; docs/zh/architecture/features/multi-table.md:521 ### 关键源码文件; `docs/zh/architecture/features/multi-table.md:527 ### 示例实现`
  • Suggested fix: Now that section 14 has real content, the placeholder sentence just above (line 519, the one pointing readers to the "Related Resources" chapter) is stale. It was only there because the section was empty, and the en page (multi-table.md:782-793) has no equivalent. Could you drop it so the Key Source Files subsection follows the section heading directly, as on the other four pages?
  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Open docs/zh/architecture/features/multi-table.md at head 78a6e85, lines 517-530. Line 519 is the redirect sentence, and it is immediately followed by the two newly added reference subsections. Compare en lines 782-793, where no such sentence exists.

On points raised earlier in this thread

  • +1 — I checked this independently: The visible part of the review (the body is truncated) makes three checkable claims, and each holds at head 78a6e85: the added zh lists match the en lists in targets and order, the linked targets exist, and the change is +41/-0 and documentation-only. The truncated remainder was not available and is not covered by this verdict.

Review conclusion

Conclusion: final approval remains pending on the previous comments

2. Remaining follow-ups

  • Issue 1: The description's "after: 0 pages with en/zh source-link drift" does not hold: zh engine-architecture.md and zh source-architecture.md still lack source links that their en counterparts carry.
  • Issue 2: The 15 new relative source links are valid at this head, but no CI job checks them and the "same depth" argument holds only for GitHub rendering.
  • Issue 3: In zh multi-table.md the new subsections are appended after a placeholder sentence that only made sense while the References section was empty.

Thanks for the updates so far. Happy to discuss the remaining points.

@DanielLeens

Copy link
Copy Markdown
Contributor

Thanks for confirming the head, and thanks @SEZ9 for checking the source links. The approval covers the unchanged 78a6e853 head and the Apache and fork Builds are green. No contributor change or rerun is needed for my review. GitHub still shows REVIEW_REQUIRED, which needs a write-capable maintainer.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution and @SEZ9's cross-check. A correction to my discussion reply: the review record currently shows the new SHA, but its submission predates the Nov 11 merge commit. I have now reviewed the complete current diff directly.

What problem does this PR solve?

Readers of five Chinese architecture pages lacked the source pointers supplied in the English pages. The patch adds those sections, so, for example, a reader of the checkpoint article can jump from the design explanation to CheckpointCoordinator.

1. Code changes

1.1 Core logic

Before, each affected References section went straight to related material or ended without a source list. After, the pages add the matching English source targets. I resolved all fifteen Java links from their Markdown locations and checked the five literal directory paths in the current tree. They lead from DAG concepts to LogicalDag and physical execution classes; resource allocation to the resource manager and slot/worker types; checkpoints to the coordinator, pending state and storage contract; and multi-table design to MultiTableSink, SinkIdentifier and TablePath. No execution path changes.

1.2 Compatibility

Fully compatible; documentation navigation only. No options, defaults, API, protocol or stored state change.

1.3 Performance and side effects

No code, resource, scheduling, logging, retry or networking change.

1.4 Errors, logging, and findings

No error handling changes or broken targets found at the current head. I agree with @SEZ9 that all targets match the English reference material.

2. Code quality

2.1 Conventions

Translations retain source names and established References heading structure.

2.2 Test coverage and stability

No test source changed. The repository and fork Builds are green; local Git object checks confirm each named target.

2.3 Documentation

Chinese additions bring the pages in line with the existing English source sections. No English change is needed.

3. Architecture

3.1 Change location

Precise documentation parity fix at the pages where users look for implementation references.

3.2 Maintainability

Matching the same paths in both languages improves future parity audits.

3.3 Extensibility

The other language pages can follow the same reference pattern.

3.4 Upgrade impact

No migration or release behavior change.

4. Findings summary

# Finding Location Severity
- No new source blocker found - -

5. Merge recommendation

Can merge after required maintainer review.

Blocking items: No source or documentation blocker. GitHub still requires effective review by a write-capable maintainer.

Non-blocking suggestions: None.

Thank you for keeping the additions separate from unrelated text changes.

CI and repository state: Signal pull request update: SUCCESS; Build: SUCCESS; Build: success. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 78a6e853c848e93c0021e0cf35b1be14967fa8da against merge base f5374addb396b3515fc2aff358b110ad35fe7874. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Comment on lines +572 to +576
- [LogicalDag.java](../../../../seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/logical/LogicalDag.java)
- [PhysicalPlan.java](../../../../seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalPlan.java)
- [SubPlan.java](../../../../seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/SubPlan.java)
- [PhysicalVertex.java](../../../../seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/dag/physical/PhysicalVertex.java)
- [TaskGroupDefaultImpl.java](../../../../seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/execution/TaskGroupDefaultImpl.java)

@davidzollo davidzollo Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this use of relative paths is incorrect, because the documents under docs will be synchronized to https://github.com/apache/seatunnel-website, and the official website documentation is built within seatunnel-website, which does not contain source code files such as LogicalDag.java.

Thanks for your contribution! This is a solid addition to the project, and your attention to detail really shows. Contributors like you are what keep this community moving forward. Feel free to keep the PRs coming — we're always glad to have you here!

Please ignore the following message if you have joined in the Slack~

To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
Slack workspace link: https://s.apache.org/seatunnel-slack

This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join 😄

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, @davidzollo. Sorry I checked only whether these targets existed in the SeaTunnel tree in my previous round. The website HOW_DOC_WORK.md confirms that only docs/images are staged into the website layout, and its root has no seatunnel-engine or seatunnel-api tree. Absolute GitHub blob URLs are the focused correction. I am incorporating this existing point, with attribution, into the complete review of the current merged head rather than treating the earlier clearance as sufficient.

@SEZ9

SEZ9 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

@lxcxjxhx thanks for confirming that nothing was pushed after 78a6e853. There is still one change needed before this can go in, plus two small cleanups.

Relative source links (needs a change)
@davidzollo's point is right: the docs are synchronized to seatunnel-website and built there, and that repo does not contain source files such as LogicalDag.java. This is the open side of the earlier note on these links: the 15 new relative source links resolve at this head, but only in GitHub rendering, and nothing checks them automatically. They will not resolve on the official website.

Please change the 15 links to a form that does not depend on the source tree sitting next to the docs. Absolute GitHub URLs are one option. @davidzollo, could you confirm which form you prefer, so this only needs one revision?

Smaller items from the earlier review

  • Description claim: "after: 0 pages with en/zh source-link drift" does not hold yet. The zh engine-architecture.md and zh source-architecture.md still lack source links that their en counterparts carry. Please either add them in the same link form, or reword the description to match what this PR covers.
  • Placeholder sentence: in zh multi-table.md, the new subsections are appended after a placeholder sentence that only made sense while the References section was empty. Please remove or reword it.

Once the link form is settled and these are updated, I'm happy to take another look.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for checking only repository-relative resolution in my previous review. @davidzollo and @SEZ9 are right about the publication boundary. I have now reviewed the complete current five-file diff and the website documentation-sync contract.

What problem does this PR solve?

User problem: Chinese architecture readers lack source-reference navigation found in English pages.

Fix: Add source-file/package references to five Chinese pages.

In one sentence: Connect the architecture explanations to implementation, using links that must work on the published website as well as GitHub.

1. Code changes

1.1 Core logic

Before / after: The patch adds Key Source Files/Example Implementations subsections with relative Java-source links and literal package paths. At this merged head the multi-table page already contains the same two subsections, so the final diff duplicates them.

Key findings: The Java files exist in the SeaTunnel repository; that fact alone does not make the links work after docs are copied to the website; no runtime code changes; the duplicate subsection is visible in the current final diff rather than a new runtime defect.

SeaTunnel docs/en and docs/zh Markdown
 -> website tools/build-docs.sh / SeaTunnel tools/documents/sync.sh
 -> website docs and translated Docusaurus docs tree
 -> Docusaurus page links
 -> ../../../../seatunnel-engine or seatunnel-api target is outside copied docs
 -> no matching Java source tree in the published website

The website HOW_DOC_WORK.md explicitly states that the site comes from apache/seatunnel-website and only the docs/images are staged from the codebase. Its root inventory has neither seatunnel-engine nor seatunnel-api.

1.2 Compatibility

Runtime fully compatible; documentation output needs repair. No API, config/default, wire format, stored state or upgrade behavior changes. Source links must use an output-independent target; absolute GitHub blob URLs are the minimal correction.

1.3 Performance and side effects

No CPU/memory/GC, network, locking, concurrency, retries, idempotency or resource-release change in SeaTunnel. Only browser navigation/builded Markdown is affected.

1.4 Errors, logging, and findings

Community blocker — +1 to @davidzollo's inline comment and @SEZ9's relative-link point. docs/zh/architecture/engine/dag-execution.md:572 and the other newly added Java links cannot rely on adjacent code in the website. Please use absolute https://github.com/apache/seatunnel/blob/dev/... targets for the new links. Existing similar links in other pages are a separate follow-up; expanding the website to ship Java trees would be a much larger workaround. I am not duplicating this as a newly numbered Daniel finding.

Issue 1 (Low, non-blocking) — Remove the duplicate multi-table reference subsections. Location: docs/zh/architecture/features/multi-table.md:532-541. The same Key Source Files and Example Implementations blocks already occur at 519-528 in the current head. Drop the repeated appended block while preserving the original and correcting its relevant new-link ownership as appropriate. This is newly visible at the merged head. Raised by others: the placeholder/order concern is related to @SEZ9's earlier point; the current duplicate blocks are the concrete additional evidence.

2. Code quality

2.1 Conventions

Documentation-only, but the final merged pages must be read as pages rather than only as additions. Do not retain duplicate headings solely to keep a purely additive diff.

2.2 Test coverage and stability

No UT/E2E code changes; stability rating is not applicable. Static git-object checks confirm Java targets exist in the source tree; the website contract/root inventory confirm that tree is not copied as a navigable website target. No current-head fork Build or Apache Build is reported for 5f483e0; previous-head successes cannot certify this merged head. No local build or website execution was performed.

2.3 Documentation

Keep the scope claim precise, as @SEZ9 requested: these subsection additions do not remove every EN/ZH inline-source-link difference. The literal package lists match their English counterparts; translate or retain labels consistently. The current duplicated multi-table section needs cleanup.

3. Architecture

3.1 Change location

Best change location: the Markdown link targets. Absolute source-repository URLs work across both publication layouts without coupling the docs site to the Java source checkout. Minimal fix and the better ownership boundary coincide.

3.2 Maintainability

Use one reference subsection per page and avoid claiming a wider parity sweep than this diff performs.

3.3 Extensibility

The same output-independent link form can be adopted in older pages separately; no website packaging redesign is needed.

3.4 Upgrade impact

No job migration or runtime compatibility change.

4. Findings summary

# Finding Location Severity
Community Relative Java links do not survive website publication docs/zh/architecture/engine/dag-execution.md:572 Medium, blocking; @davidzollo / @SEZ9
1 Duplicated multi-table reference subsections docs/zh/architecture/features/multi-table.md:532 Low, non-blocking

5. Merge recommendation

Merge after fixing the publication links and completing current-head checks.

Blocking items: The existing community source-link finding and current-head CI/repository approval. My previous technical clearance is withdrawn; it did not establish published-site navigation.

Non-blocking suggestions: Issue 1 and the scope/placeholder cleanups already discussed by @SEZ9.

The useful reference content should be retained. Correcting its URLs and dropping a duplicate block is smaller than changing the website build or expanding this PR into all architecture pages.

CI and repository state: no check reported in the Apache rollup; no exact-head fork Build established. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 5f483e056d590988b4260f71b5cd441d7d853f2f against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

@lxcxjxhx

Copy link
Copy Markdown
Contributor Author

All three points are addressed in 7147d7c3, and one of them turned out to be worse than a wording problem.

your point what I found change
15 relative source links only resolve in GitHub rendering correct — and features/multi-table.md did not need them at all (below) the 12 that remain are now absolute blob/dev URLs
description claims "0 pages with en/zh source-link drift" correct, it does not hold description rewritten; the page that still drifts is named in it
placeholder sentence in zh multi-table.md the whole added block was a duplicate that file is now untouched by this PR

On multi-table.md. Checking dev before editing: the two subsections this PR added (关键源码文件 with MultiTableSink/SinkIdentifier/TablePath, and 示例实现) already exist there at lines 519-528. So the addition did not fill a gap — it repeated content, and it also moved 如需进一步了解 Schema、Sink 语义与 DAG 执行… away from the end of the page, which is why that sentence reads as a placeholder. Removing the block resolves your point and drops the file from the diff entirely.

On link form. I went with absolute URLs since you offered them and @davidzollo has not stated a preference yet. If the project prefers a different form — a version tag instead of dev, or a docs-site path — it is a one-line rewrite of the same 12 targets, no restructuring.

Also changed, not asked for: engine-architecture.md listed three package directories as backticked paths while its en counterpart names five classes. Those five are now links in the same form, so the page is not the odd one out in this set.

Verification: every distinct URL added here returns 200 (curl -I, 14/14 — three of the 17 rows are the same class linked from two pages). The docusaurus build is still the one thing I cannot run here.

Still open, and deliberately not in this PR: zh api-design/source-architecture.md has no Code References section at all, while en has four .java links under 3.4. Adding a section to a page that never had one is a structural choice, so it belongs in its own PR rather than this one.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for converting the source references to absolute links and removing the duplicate multi-table section. That addresses the publication issue raised by @davidzollo and @SEZ9.

What problem does this PR solve?

User problem. Several Chinese architecture pages lacked the direct implementation references available to English readers. Relative Java paths also cannot follow readers into the separately built website.

Change. Add source-reference sections to four Chinese pages using absolute SeaTunnel repository URLs.

A reader of the published DAG guide can now click straight through to PhysicalPlan.java.

1. Code changes

1.1 Core logic

Before, the four pages reached their references without the new source lists. After, they link directly to the Java files in apache/seatunnel dev. I resolved all 17 added link occurrences against the current upstream dev tree.

SeaTunnel Markdown → backend.yml:615-646 checks out the website repo and syncs docs → Docusaurus generates Chinese architecture pages → the browser follows absolute GitHub URLs. The published site does not need the Java tree in its checkout. The diff only adds text and links. It changes neither the engine nor the actual DAG or checkpoint flow.

1.2 Compatibility

Fully compatible. No API, configuration, default, protocol, stored state or runtime behavior changes.

1.3 Performance and side effects

No effect on engine resources, concurrency, network requests at execution time or task lifecycle.

1.4 Errors, logging, and findings

No blocking documentation or source issue found. The prior relative-link blocker is cleared on this head. The current diff also drops the duplicate multi-table reference section raised earlier.

2. Code quality

2.1 Conventions

Four pages use the same reference heading and link convention. The current PR description still says five pages and complete bilingual parity. Please update that summary to match the four files and avoid implying a wider audit.

2.2 Test coverage and stability

The 17 added URLs map to present objects in the fetched dev tree. A new unit or E2E test is unnecessary for these links. The exact-head website build is not yet visible.

2.3 Documentation

This change fills source navigation in Chinese pages. Existing English pages already have references, so no matching English edit is needed.

3. Architecture

3.1 Change location

Absolute source links belong in the Markdown sections. The website workflow can stay independent of the Java checkout.

3.2 Maintainability

The branch-relative GitHub URLs can follow dev as the class paths evolve. Existing section structure stays consistent.

3.3 Extensibility

The same convention works for future cross-repository source references.

3.4 Upgrade impact

No upgrade or migration impact.

4. Findings summary

# Finding Location Severity
- No new source blocker found - -

5. Merge recommendation

Can merge after the required documentation check and approval

Blocking items: No documentation blocker remains. GitHub shows REVIEW_REQUIRED and no check for this exact head. Please link the new website/Build result when available. The previous head's green checks do not cover the newly changed links.

Non-blocking suggestions: Align the PR description's page count and scope with the four-file diff.

Thanks for the focused follow-up. The links now work at the website publication boundary that was missing in the earlier revision.

CI and repository state: no check reported in the Apache rollup; no exact-head fork Build established. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 7147d7c3516a10f3a7910b729174a12ef58f75c8 against merge base afae3f28810fdf8c9fae8d4121f967e73eb2f2f5. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A concrete update to the CI gate: the current Build check is ACTION_REQUIRED because its payload says that no Build workflow run was detected in the fork for this head. That is a missing-run detection status, not proof of a workflow waiting for maintainer approval. Please open lxcxjxhx/seatunnel Actions, enable workflows if the UI requires it, then manually run the existing Build workflow on branch docs/zh-key-source-files and verify the run SHA. A write-capable maintainer is needed only if an actual workflow run separately displays an approval request; approving a review does not create the missing fork run. No unrelated source/dependency patch or drift-only sync is indicated. My prior source conclusion remains clear; CI must complete before runtime acceptance.

Checked unchanged head 7147d7c3516a10f3a7910b729174a12ef58f75c8 against dev: compare diverged, ahead 5 / behind 15. This drift is recorded independently; it does not by itself request synchronization. This is a discussion/CI follow-up, not another full source review. No local build, test or runtime execution was performed. Daniel has READ repository permission; effective maintainer approval/dismissal remains a separate repository gate. Checked 2026-11-21T11:54:29.720270+00:00.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the rebased update! I re-read the complete diff and checked each source target. The source-reference concerns remain resolved; exact-head CI is still outstanding.

What problem does this PR solve?

User impact: four Chinese architecture reference sections lack implementation links. Fix: add 17 absolute GitHub links covering 14 distinct Java files. In one sentence: readers can navigate from the architecture text to the implementation, including after website synchronization.

1. Code changes

1.1 Core logic

Complete runtime path:

Read zh architecture article -> source-file subsection -> absolute GitHub Java URL
tools/documents/sync.sh copies zh docs into website i18n/current -> absolute links remain valid independently of website filesystem
No runtime Java/configuration/state path is changed.

Key findings and correctness:

Read the complete four-file diff. git cat-file -e succeeded for all 17 added link rows. The lists cover DAG execution, engine coordination, slot resources, and checkpoint storage. The current description limits its parity claim and deliberately leaves source-architecture restructuring separate; multi-table.md is untouched. Normal execution never reaches a changed instruction because there are no executable changes.

Before: No source-file links followed the existing References heading in these four pages.

After (one of the added lines):

- [LogicalDag.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/logical/LogicalDag.java)

1.2 Compatibility

Fully compatible: API, options/defaults, protocol, serialization, saved jobs and restore semantics are unchanged.

1.3 Performance and side effects

Documentation-only: no runtime CPU, memory, GC, networking, lock, retry, idempotence, or release changes.

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.

+1 to @davidzollo and @SEZ9 on avoiding relative source links after synchronization. The full current diff uses absolute URLs and does not repeat the multi-table block; the description now acknowledges remaining cross-page differences. This closes those earlier follow-ups. I agree with the earlier positive source assessment, subject to CI and write-capable maintainer review.

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. No UT/E2E changes. Static target checks passed for every added link and git diff --check passed. No exact-head fork Build exists in the snapshot, so website validation is unproven. This does not prove Actions is disabled or awaiting maintainer approval. The author must obtain an existing Build workflow run for this branch/head; no local build was executed.

2.3 Documentation

These are Chinese reference additions corresponding to existing English source-reference lists. Absolute dev links intentionally follow current source and remain independent of the website tree.

3. Architecture

3.1 Change location

The four existing zh References sections are the appropriate boundary. Absolute source URLs solve website publication without changing the sync script or suppressing checks.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The four existing zh References sections are the appropriate boundary. Absolute source URLs solve website publication without changing the sync script or suppressing checks.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Fully compatible: API, options/defaults, protocol, serialization, saved jobs and restore semantics are unchanged.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# 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; no exact-head fork Build established. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 6d904e0080609b458ac8abbebf3e212610a6ce9a against merge base 02a7c22b3e663c3b4b1230703adb39f82d313f1d. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-24T11:39:33.900108-05:00

Local evidence: git fetch obtained head 6d904e0080609b458ac8abbebf3e212610a6ce9a; git merge-base returned 02a7c22b3e663c3b4b1230703adb39f82d313f1d; git diff --stat reports 4 files changed, 32 insertions(+). 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.

@SEZ9

SEZ9 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the update. Here is where the three earlier doc points stand, going by the latest review pass on this thread:

  • PR13119-F1 (en/zh source-link drift claim): this looks addressed. The description is reported to limit its parity claim now, acknowledge the remaining cross-page differences, and leave the source-architecture restructuring as separate work. Please confirm that the "0 pages with en/zh source-link drift" wording is gone from the description, and that it names the zh engine-architecture.md and source-architecture.md gaps as known follow-ups.

  • PR13119-F2 (relative source links): this looks resolved. The diff is reported to use 17 absolute GitHub links covering 14 distinct Java files, so the links no longer depend on directory depth and stay valid after tools/documents/sync.sh copies the zh docs into the website tree. All 17 targets were reported to exist. Since there is still no automated check on these links, please re-verify the targets yourself if you touch the lists again.

  • PR13119-F3 (placeholder sentence in zh multi-table.md): this no longer applies, as multi-table.md is reported to be untouched in the current diff. Please confirm that this is intentional and that the file is fully out of this PR.

Once you confirm the F1 and F3 points, I have nothing further on these three items.

@lxcxjxhx

Copy link
Copy Markdown
Contributor Author

Both confirmations, checked against the current diff rather than from memory:

F1 — the "0 pages with en/zh source-link drift" wording. It is gone. A string search over the current body finds no occurrence of "source-link drift" anywhere, and the parity claim now lives in a section titled "What this PR does not claim", which opens with "It does not make en/zh source links globally consistent" and names docs/zh/architecture/api-design/source-architecture.md — the four .java links under 3.4 Code References that its en counterpart carries — as left for a separate PR, with the reason (the zh page has no equivalent section, so it is a structural decision, not a list to append).

On engine-architecture.md, one correction to the framing. It is not an outstanding gap — it is one of the four pages this PR changes. git diff touches docs/zh/architecture/engine/engine-architecture.md along with dag-execution.md, resource-management.md and fault-tolerance/checkpoint-mechanism.md; on that page the added block names the same five classes its en counterpart links (CoordinatorService, JobMaster, ResourceManager, AbstractResourceManager, CheckpointCoordinator). The only outstanding zh/en structural difference is the api-design/source-architecture.md one above.

F2 — the absolute links. The current diff adds 17 absolute https://github.com/apache/seatunnel/blob/dev/... links and 0 relative ones, across those 4 files (+32/−0). Your count of 17 matches the diff; my earlier "12" was from the revision that still touched features/multi-table.md, and that file is untouched now.

So the remaining answer you need from me is only whether naming api-design/source-architecture.md as the single known follow-up is enough, or whether you also want the engine-architecture.md structural difference spelled out even though this PR fixes that page. Say which and I will adjust the description — I would rather not re-edit the body twice.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the detailed clarification! I re-read the complete current diff and the description. You are right: engine-architecture.md is fixed here. Naming source-architecture.md as the separate structural follow-up is enough; please do not add another statement calling the engine page unfinished.

What problem does this PR solve?

Reader pain: Four Chinese engine architecture pages lack direct references to the implementation classes. Example: a reader studying checkpoint persistence should be able to open CheckpointStorage directly.

Change: Add 17 absolute GitHub source references across those four pages.

In one sentence: Connect the architecture explanation to its implementing code.

1. Code changes

1.1 Core logic

Complete runtime path:

Reader opens docs/zh architecture page
 -> References / Key Source Files
 -> absolute github.com/apache/seatunnel/blob/dev URL
 -> existing engine class/interface
DAG: LogicalDag -> PhysicalPlan -> SubPlan -> PhysicalVertex -> TaskGroupDefaultImpl
Coordination/resources: CoordinatorService -> JobMaster -> ResourceManager/AbstractResourceManager -> SlotProfile/WorkerProfile
Recovery references: CheckpointCoordinator -> PendingCheckpoint -> CheckpointStorage
No executable production path, configuration parser, checkpoint serializer or lifecycle callback changes.

Key findings and correctness:

  1. The complete diff is four documentation files, 32 additive lines, with no Java, fixture or workflow edits.
  2. All 17 added link targets exist at this exact head (git cat-file -e returned zero for each). They are absolute links, so copying pages to a documentation site does not change source-link resolution.
  3. The engine architecture page is fixed in this PR: its five linked classes match the English counterpart. It should not be described as a remaining omission.
  4. The PR body explicitly excludes global en/zh source-link parity and names source-architecture.md as the structural follow-up. That is sufficient; no additional engine-architecture omission statement is needed.
  5. Links track dev rather than a version tag: this is an explicit live-source reference, not a frozen version guarantee.

Before: The four reference sections had no direct source-file list.

After (one exact added source link, with its heading translated):

- [LogicalDag.java](https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/dag/logical/LogicalDag.java)

1.2 Compatibility

Fully compatible: additive references only; no public API, configuration name/default, protocol, serialization format or historical runtime behavior changes.

1.3 Performance and side effects

No production CPU, memory, GC, network, locking, concurrency, retry, idempotency or resource-release impact. Browsing the links makes ordinary GitHub requests only.

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.

The earlier @SEZ9 review raised parity wording and relative-link portability. The current diff uses absolute URLs and the description explicitly limits the parity claim. I agree with that technical direction; there is no remaining blocking finding from those points. I did not repeat their historical findings as new numbered issues.

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. No UT/E2E test changes; test-stability rating does not apply. Checked every added source target in the local Git object tree. This proves repository targets exist, not a Docusaurus build or future URL permanence. No local build or runtime was executed.

2.3 Documentation

The four Chinese reference sections are the intended scope. The author has correctly documented the remaining source-architecture structural difference instead of claiming global parity. English architecture text needs no runtime correction from this additive patch.

3. Architecture

3.1 Change location

The reference sections of the affected Chinese pages are the right boundary. Absolute GitHub links solve copied-page resolution locally without changing the site build or source organization.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The reference sections of the affected Chinese pages are the right boundary. Absolute GitHub links solve copied-page resolution locally without changing the site build or source organization.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Fully compatible: additive references only; no public API, configuration name/default, protocol, serialization format or historical runtime behavior changes.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# 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; no exact-head fork Build established. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at f85cb95378d18909eb5e604778c97374bab3644e against merge base f08c722acb4a95d8bf0cca76367d331b08539a0d. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-25T06:39:02.602131-05:00

Local evidence: git fetch obtained head f85cb95378d18909eb5e604778c97374bab3644e; git merge-base returned f08c722acb4a95d8bf0cca76367d331b08539a0d; git diff --stat reports 4 files changed, 32 insertions(+). 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.

…anagement page

Upstream apache#13282 added the source-file section to three of the four zh architecture
pages this branch covers; resource-management.md still lacks it while its en
counterpart has carried one all along.

The four linked classes and their paths are the ones the en page links.
Absolute github.com URLs, as in the rest of the zh tree, because the zh docs are
synced into seatunnel-website where relative source links do not resolve.
@lxcxjxhx
lxcxjxhx force-pushed the docs/zh-key-source-files branch from f85cb95 to 52ff1ff Compare November 26, 2026 13:45
@lxcxjxhx lxcxjxhx changed the title [Doc][Architecture] Add the missing source-file sections to the zh pages [Doc][Architecture] Add the missing source-file section to the zh resource-management page Nov 26, 2026

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for narrowing the description after the upstream documentation merge. I re-reviewed the complete current diff. Reviewed head 909826db26d992a1b599bd0b200ab7ac31ea7b7c.

What Problem Does This PR Solve?

User pain point: The Chinese resource-management architecture page lacks the source-file reference section already present in English.

Fix approach: Add four absolute GitHub source links to that one Chinese page.

One-sentence example: A reader can follow the resource-management explanation directly to ResourceManager, AbstractResourceManager, SlotProfile and WorkerProfile.

1. Code Change Review

1.1 Core Logic Analysis

Before:

Section 12 proceeds directly to Further Reading.

After:

Section 12 includes Key Source Files with four absolute GitHub links.

The entire current diff is one Markdown file with eight added lines. All four link target paths exist in the captured upstream/dev Git tree. The body explains that #13282 supplied the other three pages and explicitly leaves the source-architecture structural difference as separate work.

Affected path:

docs/zh/architecture/engine/resource-management.md:507 -> GitHub dev source targets
ResourceManager / AbstractResourceManager -> resource/SlotProfile / worker/WorkerProfile
English resource-management references identify the same four classes in the same order.

1.2 Compatibility Impact

Fully compatible: additive navigation only; no executable source, config, protocol or serialized state changes. No live old-version upgrade was executed.

1.3 Performance / Side-Effect Analysis

No production CPU, memory, GC, locking, resource ownership or network behavior changes. Users who click links navigate to GitHub.

1.4 Error Handling and Logging

No runtime error-handling or logging path changes. Absolute links avoid dependence on source-tree-relative resolution when the page is copied to the website.

2. Code Quality Assessment

2.1 Coding Standards

The full changed-file scope was inspected, including imports, existing ASF headers, comments, helper contracts and assertion preservation. No dependency or unrelated production refactor is added. Specific documentation/diagnostic limits are identified below.

2.2 Test Coverage and Test Stability

Verified all four target paths with git cat-file -e and compared the English reference list. No local website build was run. Build is ACTION_REQUIRED with payload stating no fork Build was found for this head; this is not evidence of a waiting workflow approval.

Stability rating: Stable (not applicable to runtime tests). No tests or timing-sensitive execution change. Git-tree existence checks do not prove a website build or permanent URLs after future file moves.

Local verification: fetched an independent review branch, read the complete merge-base diff and affected caller/helper/fixture paths, and ran git diff --check successfully. No local compilation, tests, E2E, packaging, Docker/service startup or UI build was run, as requested. Author-reported execution is not counted as my own verification.

2.3 Documentation Updates

The current English section already has the four references; this fixes the Chinese omission. multi-table.md is untouched. The current body does not claim global parity.

3. Architectural Soundness

3.1 Elegance of the Solution

The missing reference section is the correct owner. Changing website machinery or duplicating Java documentation would be unnecessary; four absolute source links solve the copied-page navigation issue.

3.2 Maintainability

The earlier discussion about 17 links across four pages describes the previous head. This head has four links in one page after upstream absorbed the other sections. SEZ9 concerns about absolute links and overbroad parity claims remain resolved; the author need not keep describing an engine-architecture gap that upstream already filled.

3.3 Extensibility

No new shared abstraction or plugin contract is required. Keep this change within the identified boundary and retain the existing surrounding assertions and failure propagation.

3.4 Historical-Version Compatibility

The source contract assessment is in Section 1.2; no persisted schema migration or historical release interoperability is claimed.

4. Issue Summary

No blocking source/documentation issue found.

Number Issue Location Severity
— No blocking issue found Complete one-page diff —

Completeness: all changed files, affected paths, compatibility, resources, comments, tests, documentation and current CI/merge evidence were considered. Limitations are explicit above.

5. Merge Recommendation

Conclusion: Ready to merge after fixes

Blockers — must be fixed: No source blocker. The CI fact cited previously has changed from no reported check to an explicit missing-fork-run ACTION_REQUIRED result. Open the fork Actions page and dispatch the existing Build workflow on this PR branch, verifying the run SHA. If Actions is disabled, the fork owner must resolve that first. No evidence establishes a base-branch code fix for missing workflow execution, so a drift-only sync is not requested. Maintainer approval remains separate.

Recommended fixes — non-blocking: None beyond completing the existing CI/reviewer gates.

Base dev comparison: ahead, ahead 3, behind 0, base SHA 39c74ce48b0fb5e0318326b8d57a42c7380c40c8. Drift is recorded independently and does not itself justify a sync request. Daniel has READ permission; this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval requirement.

Current GitHub gate snapshot (2026-11-27T02:52:56.384657+00:00): Signal pull request update: SUCCESS (https://github.com/apache/seatunnel/actions/runs/45885991957/job/140137938275); Build: ACTION_REQUIRED (https://github.com/apache/seatunnel/runs/140138976939). Merge state: BLOCKED; review decision: REVIEW_REQUIRED.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to Apache SeaTunnel! I reviewed the complete current diff and followed its entry points and failure paths. I did not find a source-level merge blocker in the reviewed paths.

What problem does this PR solve?

User pain: The Chinese resource-management reference page has no implementing-source list even though its English counterpart does.

Approach: Add exactly four absolute GitHub source links under that page's References section.

In one sentence/example: A reader can jump from the slot-management explanation directly to ResourceManager or SlotProfile without searching the repository.

1. Code changes

1.1 Core logic

Complete runtime path:

docs/zh/architecture/engine/resource-management.md References
 -> four absolute github.com/apache/seatunnel/blob/dev links
 -> ResourceManager, AbstractResourceManager, SlotProfile, WorkerProfile
 -> tools/documents/sync.sh publishes docs independently of the source tree
Absolute links retain their target regardless of the website locale directory depth.

Key findings and correctness:

  1. The complete diff is one file, eight added lines; there is no runtime, build, configuration or other-page change.
  2. All four target paths exist at b452aa4 (git cat-file -e returned success). Their names/order match the English Key Source Files list.
  3. Absolute URLs address @davidzollo's website-copy concern and @SEZ9's earlier relative-link portability point. They deliberately track dev rather than a released source tag.
  4. The PR body now explains that #13282 supplied the other pages upstream and explicitly declines a global language-parity claim. The earlier multi-table duplicate is outside the final diff, so it is not an unresolved change in this version.

Before:

References -> Further Reading (no source-file subsection)

After (source labels):

References -> Key source files
ResourceManager.java
AbstractResourceManager.java
SlotProfile.java
WorkerProfile.java

1.2 Compatibility

Fully compatible: additive documentation only. No API, option, default, protocol, serialization, persisted job semantics or upgrade behavior changes.

1.3 Performance and side effects

No production CPU, memory, GC, network, locking, retry, idempotence or resource-lifetime impact. Only normal browser navigation to four source links is added.

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.

+1 to @davidzollo's earlier concern that relative links break after synchronization into seatunnel-website: all four new links are absolute. @SEZ9's earlier portability and overbroad-parity findings are addressed by the final link form and current scoped description; their multi-table/style comments refer to files no longer changed here. The earlier maintainer COMMENT and review discussion support the additive documentation intent; no maintainer APPROVED state is asserted. This assessment is for the current one-page diff.

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: Not applicable. Not applicable: no UT/E2E code changes. Static file/Markdown target checks succeeded; no local website build or rendered-site validation was performed. Existing link-check exclusions mean remote CI alone is not proof of every source link's validity.

2.3 Documentation

The four class names and order agree with the EN resource-management references. EN uses relative source links already; this PR safely fixes the missing ZH subsection with absolute URLs without claiming to repair the entire docs tree.

3. Architecture

3.1 Change location

The missing subsection belongs in the Chinese resource-management page. No source-code or global website-routing change is necessary; a shared link-validation follow-up can be independent.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The missing subsection belongs in the Chinese resource-management page. No source-code or global website-routing change is necessary; a shared link-validation follow-up can be independent.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Fully compatible: additive documentation only. No API, option, default, protocol, serialization, persisted job semantics or upgrade behavior changes.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# 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; no exact-head fork Build established. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at b452aa4f74cc464db44f6f2c5a48eaa222965da8 against merge base ee0fb0d72f67edbcd6caf08360fd354fa68e002f. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-27T04:00:43.598250-05:00

Local evidence: git fetch obtained head b452aa4f74cc464db44f6f2c5a48eaa222965da8; git merge-base returned ee0fb0d72f67edbcd6caf08360fd354fa68e002f; git diff --stat reports 1 file changed, 8 insertions(+). 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.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI gate has become more specific: the current Apache Build check is ACTION_REQUIRED with title "Workflow run detection failed". Its output says no Build run was found in the contributor fork for this head; it does not establish that a source test failed or that a workflow is awaiting a maintainer approval click. Please open your fork's Actions tab: if workflows are disabled, enable them; if already enabled, manually run Build on this PR branch. The existing bridge can adopt that exact-head result. An empty trigger commit or unrelated code change is unnecessary. My documentation source clearance stands. Fork enablement is not independently confirmed, so I am recording missing-run detection rather than asserting that Actions is definitely disabled.

5. Merge recommendation

Conclusion: Merge after fixes / remaining repository gates.

Blocking items: No remaining source blocker from Daniel. The current CI/repository gate described above still needs attention.

Non-blocking suggestions: Those from the existing complete review are unchanged; this follow-up adds no source finding. No alternative implementation or unrelated module/dependency patch is requested.

Unchanged head b452aa4f74cc464db44f6f2c5a48eaa222965da8; base dev compare ahead, ahead 5 / behind 0. This drift is recorded separately and alone does not request synchronization. This is a CI/gate correction, not another full source review; no local build/test/runtime execution was performed. Daniel has READ permission, so historical requested-changes controls and an effective write-level approval/dismissal remain maintainer actions. Checked 2026-11-27T10:23:37.837647+00:00.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants