Repository navigation
[Docs] Fix false scheduling claim, checkpoint default and zh parity issues in Zeta docs - #13282
Conversation
…ssues in Zeta docs
DanielLeens
left a comment
There was a problem hiding this comment.
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
- Blocking: Fix the newly added source links in Issue 1. GitHub also reports review required; the current branch has no content conflict.
- 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
left a comment
There was a problem hiding this comment.
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.
…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.
Yes, I am contributing to Apache SeaTunnel.
What documentation issues were found
While auditing the docs on
upstream/devagainst the source code, I found the following real issues:job-schedule-strategywith dynamic slots (EN + ZH, hybrid + separated deployment guides). All four deployment guides stated that withdynamic-slot: true, ajob-schedule-strategy: WAITconfiguration "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,WAITsleeps 3 seconds and retries scheduling whileREJECTfails the job immediately.dynamicSlotis only used for slot accounting (DefaultSlotService,ResourceRequestHandler). The ZH variants additionally contained a copy-paste-breaking typo in the example wording (dynamic-slot: ture).seatunnel.checkpoint.intervalis300000ms (ServerConfigOptions.CHECKPOINT_INTERVAL). The 10 s value only exists because the shippedconfig/seatunnel.yamltemplate setscheckpoint.interval: 10000. Both facts are now stated correctly.docs/zh/engines/zeta/rest-api-v2.mdlinked the OpenAPI contract with an unresolvable@site/docs/engines/zeta/openapi-v2.yamltarget, while the EN doc uses a relative link to the spec that exists only underdocs/en/engines/zeta/. The ZH page now uses the same relative link, and the language-neutral spec fileopenapi-v2.yamlis mirrored intodocs/zh/engines/zeta/so the link resolves in the localized docs tree.checkpoint-mechanism.md,dag-execution.mdandengine-architecture.mdunderdocs/zh/architecture/never included the "关键源码文件" reference subsections that the EN versions have (all referenced source files were verified to exist in the repo).null_formatoption description contradicting the code inOssJindoFile.md(EN). The option table claimed the option is "Only used intextformat", but it is applied by bothTextReadStrategyandCsvReadStrategy(connector-file-base), i.e.textorcsv— which is also what the option detail section on the same page and the other file connector docs say.What was changed
turetypo as part of the rewrite.openapi-v2.yaml.null_formattable row totextorcsv.Which areas/files were updated
docs/en/engines/zeta/anddocs/zh/engines/zeta/:hybrid-cluster-deployment.md,separated-cluster-deployment.md,tuning-guide.md,rest-api-v2.md(+ newopenapi-v2.yamlunderzh)docs/zh/architecture/:fault-tolerance/checkpoint-mechanism.md,engine/dag-execution.md,engine/engine-architecture.mddocs/en/connectors/source/OssJindoFile.mdIn 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_formattable 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 OssJindoFilenull_formatrow. One partial overlap is disclosed: open PR #13149 fixes the same class ofnull_formatwording mistake inCosFile.md(EN+ZH) and rewrites other parts ofOssJindoFile.md(theschemaoption row and thefile_format_typesection), but it does not touch thenull_formatrow fixed here, so this PR complements it without duplicating it.How the change was verified
@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).openapi-v2.yamlwas validated as parseable YAML and is byte-identical to the EN version.CoordinatorService.java(WAIT/REJECT behavior),ServerConfigOptions.java(checkpoint.intervaldefault 300000, basic-auth defaults),DefaultSlotService.java/ResourceRequestHandler.java(dynamic-slot usage), andTextReadStrategy.java/CsvReadStrategy.java(null_formatapplies to text and csv).