Skip to content

[Docs] Fix false scheduling claim, checkpoint default and zh parity issues in Zeta docs - #13282

Merged
nzw921rx merged 3 commits into
apache:devfrom
zhangshenghang:docs/fix-doc-links-and-parity-20261114
Nov 25, 2026
Merged

nzw921rx merged 3 commits into
apache:devfrom
zhangshenghang:docs/fix-doc-links-and-parity-20261114

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Yes, I am contributing to Apache SeaTunnel.

What documentation issues were found

While auditing the docs on upstream/dev against the source code, I found the following real issues:

  1. False claim about job-schedule-strategy with dynamic slots (EN + ZH, hybrid + separated deployment guides). All four deployment guides stated that with dynamic-slot: true, a job-schedule-strategy: WAIT configuration "will become invalid and will be forcibly changed to REJECT". No such override exists in the engine: CoordinatorService (seatunnel-engine-server) reads the strategy only from the engine config (isWaitStrategy = scheduleStrategy.equals(ScheduleStrategy.WAIT)) and, when resources are insufficient, WAIT sleeps 3 seconds and retries scheduling while REJECT fails the job immediately. dynamicSlot is only used for slot accounting (DefaultSlotService, ResourceRequestHandler). The ZH variants additionally contained a copy-paste-breaking typo in the example wording (dynamic-slot: ture).
  2. Wrong checkpoint-interval "default" in the tuning guide (EN + ZH). The tuning guide said checkpoints run "every 10s by default", but the engine default for seatunnel.checkpoint.interval is 300000 ms (ServerConfigOptions.CHECKPOINT_INTERVAL). The 10 s value only exists because the shipped config/seatunnel.yaml template sets checkpoint.interval: 10000. Both facts are now stated correctly.
  3. Broken OpenAPI reference in the ZH REST API v2 doc. docs/zh/engines/zeta/rest-api-v2.md linked the OpenAPI contract with an unresolvable @site/docs/engines/zeta/openapi-v2.yaml target, while the EN doc uses a relative link to the spec that exists only under docs/en/engines/zeta/. The ZH page now uses the same relative link, and the language-neutral spec file openapi-v2.yaml is mirrored into docs/zh/engines/zeta/ so the link resolves in the localized docs tree.
  4. Missing "Key Source Files" reference sections in the ZH architecture docs. checkpoint-mechanism.md, dag-execution.md and engine-architecture.md under docs/zh/architecture/ never included the "关键源码文件" reference subsections that the EN versions have (all referenced source files were verified to exist in the repo).
  5. null_format option description contradicting the code in OssJindoFile.md (EN). The option table claimed the option is "Only used in text format", but it is applied by both TextReadStrategy and CsvReadStrategy (connector-file-base), i.e. text or csv — which is also what the option detail section on the same page and the other file connector docs say.

What was changed

  • Corrected the scheduling-strategy paragraph in the four deployment guides and removed the ture typo as part of the rewrite.
  • Corrected the checkpoint-interval default in the tuning guides.
  • Fixed the ZH OpenAPI link and added the mirrored openapi-v2.yaml.
  • Added the missing ZH "Key Source Files" reference subsections with the same file links as EN.
  • Corrected the null_format table row to text or csv.

Which areas/files were updated

  • docs/en/engines/zeta/ and docs/zh/engines/zeta/: hybrid-cluster-deployment.md, separated-cluster-deployment.md, tuning-guide.md, rest-api-v2.md (+ new openapi-v2.yaml under zh)
  • docs/zh/architecture/: fault-tolerance/checkpoint-mechanism.md, engine/dag-execution.md, engine/engine-architecture.md
  • docs/en/connectors/source/OssJindoFile.md

In total 12 files (11 modified + 1 new spec copy).

English and Chinese docs

Yes — every fix above was applied to both the English and Chinese docs where both versions exist, except the mirrored OpenAPI spec (language-neutral file) and the null_format table row, whose ZH counterpart was already correct.

Duplicate PR check (last 7 days)

I searched all PRs opened in the last 7 days (gh pr list --author zhangshenghang, plus all open docs PRs) and checked their changed-file lists: #13274 (Doris/StarRocks/TDengine/Milvus/transforms), #13270 (TextChunk), #13258 (Couchbase/ES/RocketMQ/Paimon/Rabbitmq/Redis), #13234 (Clickhouse/InfluxDB/SaaS/CDC docs), #13213 (E2E), and the older open docs PRs #13193/#13149/#13097/#13072/#12993/#12986/#12971. None of them touch the deployment guides, tuning guide, ZH architecture docs, REST v2 ZH doc, or the OssJindoFile null_format row. One partial overlap is disclosed: open PR #13149 fixes the same class of null_format wording mistake in CosFile.md (EN+ZH) and rewrites other parts of OssJindoFile.md (the schema option row and the file_format_type section), but it does not touch the null_format row fixed here, so this PR complements it without duplicating it.

How the change was verified

  • A repo-wide internal-link and image-reference scan over all 1114 markdown files (before and after the change): the @site/... target was the only genuine broken link; after the fix, all internal links resolve (the two remaining scanner hits are regex literals inside inline code, not links).
  • All source-file links added to the ZH architecture docs were checked to exist in the repository.
  • The copied openapi-v2.yaml was validated as parseable YAML and is byte-identical to the EN version.
  • Verified every corrected claim against the code: CoordinatorService.java (WAIT/REJECT behavior), ServerConfigOptions.java (checkpoint.interval default 300000, basic-auth defaults), DefaultSlotService.java / ResourceRequestHandler.java (dynamic-slot usage), and TextReadStrategy.java / CsvReadStrategy.java (null_format applies to text and csv).
  • A full documentation site build was not run because the Docusaurus site lives in a separate repository; the checks above were run instead.

@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 correcting the Apache SeaTunnel Zeta guides. I reviewed all 12 changed files at f3c5a5a184c64fec5c9426dd4193ecf1c4d19f64 and traced the settings to the code. The scheduling and checkpoint corrections match the engine. The added source links need to work on the published site as well as in GitHub.

What this PR fixes

  • User pain: operators reading the guides could expect dynamic slots to force rejection or assume the 10-second template interval was the engine default. Chinese REST readers also need a link to their OpenAPI asset.
  • Fix: document both scheduling modes, distinguish the fallback checkpoint interval from the shipped template, and add Chinese architecture references and the OpenAPI file. The Jindo source table now mentions CSV null handling.
  • In one sentence: an operator who sets WAIT on a dynamic-slot cluster should expect a pending job to retry when it cannot currently get resources.

1. Code change review

1.1 Core logic

The old prose said dynamic-slot: true -> force REJECT and checkpoint interval default = 10000 ms. The new text correctly says the scheduler honors WAIT/REJECT and separates the 300000 ms engine fallback from the 10000 ms template setting.

seatunnel.yaml engine.job-schedule-strategy
  -> CoordinatorService initializes isWaitStrategy (line 302)
  -> pendingJobSchedule -> JobMaster.preApplyResources (line 440)
     -> insufficient and WAIT: keep pending, sleep 3000 ms, retry (lines 473-479)
     -> insufficient and REJECT: fail and remove the entry (lines 480-483)

ServerConfigOptions.CHECKPOINT_INTERVAL (lines 205-208)
  -> CheckpointConfig initial interval
  -> explicit config/seatunnel.yaml:29 sets 10000 ms when using that template

Website workflow -> tools/documents/sync.sh
  -> copy docs/en and docs/zh into the website tree
  -> Docusaurus builds both locales

The scheduler change is documentation about the normal resource-admission path. The Jindo row is consistent with the shared CsvReadStrategy and TextReadStrategy reads of NULL_FORMAT. The copied OpenAPI YAML is byte-for-byte identical to the existing English contract, including the two read-only routes, field schemas and optional Basic auth description. This changes the location of the Chinese link, not the wire contract.

1.2 Compatibility

Fully compatible. No code, defaults, API, protocol, serialized state or historical job behavior changes. No migration is needed.

1.3 Performance and side effects

No changes to runtime resource use, concurrency, retry behavior or cleanup. There is a maintenance cost in keeping two identical contract files in sync.

1.4 Error handling and findings

Issue 1 (Medium, blocking): Make the added source links work after the website sync. The source links at docs/zh/architecture/engine/dag-execution.md:572 and docs/zh/architecture/fault-tolerance/checkpoint-mechanism.md:522 use relative paths out of the docs to the engine source tree. All eight targets exist in the SeaTunnel clone. The actual publishing step, tools/documents/sync.sh in prepare_docs, copies docs and images into the separate website checkout; it does not copy the SeaTunnel Java source tree. These links have no corresponding Java files in that build input. Please use explicit links to the Apache SeaTunnel source on GitHub, matching the version policy for these architecture pages. This is a docs link fix and does not require changing the site build or copying implementation sources. No other reviewer raised this point.

Issue 2 (Low, non-blocking): Keep the two OpenAPI copies synchronized. docs/zh/engines/zeta/openapi-v2.yaml:17 starts an independent copy of the English spec. Both are correct today, but a future schema edit could silently update only one locale. A simple equality check in the docs workflow, or staging a shared asset into both locales when the docs are synced, would address that separately. No other reviewer raised this point.

2. Code quality

2.1 Conventions

The docs keep the existing option names, and the added YAML has the ASF header. The scheduling, checkpoint, and Jindo references agree with the implementation checked above.

2.2 Tests

No UT or E2E code changes. I read the complete local diff, checked it with git diff --check, resolved the eight paths relative to the source Markdown and compared the two YAML files with cmp. No local site build or SeaTunnel job ran. Apache Build passed, and the exact-head fork website job generated both locales. The build result does not establish reachability of the source URLs after publishing.

2.3 Documentation

Scheduling and checkpoint guidance are synchronized in English and Chinese. The Chinese Jindo table already mentions CSV; the English prose below the table already describes CSV defaults. The new architecture links should be corrected in the pages that add them.

3. Architecture

3.1 Solution fit

The docs are the right place to fix inaccurate guidance; the scheduling and checkpoint semantics already exist. The best place to fix the broken source references is the Markdown link targets.

3.2 Maintainability

Explicit source-host links keep the published site independent of the source checkout. The shared-spec maintenance suggestion can follow separately.

3.3 Extensibility

Keep the existing website integration instead of adding another publishing or API layer.

3.4 Historical compatibility

No behavioral change for previously configured clusters or generated clients.

4. Issue summary

# Issue Location Severity
1 Source links point outside the website input docs/zh/architecture/engine/dag-execution.md:572, docs/zh/architecture/fault-tolerance/checkpoint-mechanism.md:522 Medium, blocking
2 Duplicate specs can drift docs/zh/engines/zeta/openapi-v2.yaml:17 Low, non-blocking

5. Merge recommendation

Conclusion: Merge after fixes

  1. Blocking: Fix the newly added source links in Issue 1. GitHub also reports review required; the current branch has no content conflict.
  2. Non-blocking: Consider an equality check or a shared staging step for Issue 2.

The semantic corrections are sound. Updating the eight Markdown URLs is smaller and safer than extending the website sync to include Java source files.

@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 merge-gate correction for unchanged f3c5a5a184c64fec5c9426dd4193ecf1c4d19f64: GitHub now reports actual content conflicts with current dev (compare diverged, ahead 1, behind 30). The earlier statement that there was no conflict / only approval remained no longer describes the branch. Please resolve the conflicts with current dev and link checks for the resulting head. My existing source-link blocker remains separately open; conflict resolution will not fix those website URLs. This is a gate clarification, not a new numbered source review. Daniel has READ permission; effective maintainer approval remains separate. No local tests were run.

… pages

Relative links from docs/ into the SeaTunnel source tree do not resolve
on the published website because the site build only copies docs. Point
the key-source-file lists in dag-execution, engine-architecture and
checkpoint-mechanism at github.com/apache/seatunnel/blob/dev instead.
…int corrections

Resolve conflicts by retaining this branch's corrections (checkpoint
interval default 300000 ms with the shipped template at 10000, and
job-schedule-strategy behavior not forced to REJECT under dynamic-slot)
which the review verified against the engine.

@nzw921rx nzw921rx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 LGTM

@nzw921rx
nzw921rx added this pull request to the merge queue Nov 25, 2026
Merged via the queue into apache:dev with commit be4b850 Nov 25, 2026
3 checks passed
lxcxjxhx pushed a commit to lxcxjxhx/seatunnel that referenced this pull request Nov 26, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants