Repository navigation
[Docs] Fix documentation inaccuracies verified against source code - #12459
Conversation
Fix option tables, type mappings, defaults, CLI/REST examples, and navigation verified against the Java source on dev. English and Chinese docs are updated together. Details in the PR description.
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the contribution! The logic looks solid and the test coverage is good. Left a couple of minor suggestions below, but none of them are blockers. Feel free to take them or leave them — happy to approve once you've had a chance to look.
I went through the full diff (73 files, docs/en + docs/zh + docs/sidebars.js) against the current dev head and spot-checked the option/config claims directly against the connector and engine source, since the PR title specifically claims everything was "verified against source code." I want that claim to actually hold, not just sound good.
What Problem Does This PR Solve?
- User pain point: A lot of the connector and Zeta engine docs had drifted from the actual code over time — stale option types (
BigDecimalwhere the code now takesString), stale defaults (job parallelismwhere the code now hardcodes10), a config key that no longer exists (primaryKey.columnsvs. the realprimaryKey.columnNames), IMap names and MapStore config samples that don't matchConstant.java/FileMapStoreFactoryanymore, REST log endpoints pointing at the Hazelcast member port (5801) instead of the REST API port (8080), and several Zeta operational docs (state-storage-and-recovery, tuning-guide) describing a WAL/hazelcast.fs.*persistence model that isn't how the engine's file-based MapStore actually works today. - Fix approach: The author walked each touched doc against the corresponding
Option/Options.key(...)definitions, REST controllers, CLI arg parsers, and engine constants, and corrected the type, default, required/optional flag, or described behavior to match. Bothdocs/enanddocs/zhwere updated together for every file that has a language pair in this diff, and two new sidebar entries were added for existing-but-previously-unlisted doc pages. - One-sentence summary: This is a broad documentation-accuracy pass that fixes a long list of real doc/code mismatches, with one new mismatch introduced along the way (see Issue 1).
1. Code Change Review
1.1 Core Logic Analysis
This is a documentation-only change — there is no production code in the diff — so "core logic" here means "does the corrected text match the code." I spot-checked well beyond the ~10-15 minimum across a wide spread of the touched files:
Verified correct (source matches the new doc text):
docs/*/connectors/{sink,source}/Jdbc.md: The dialect table now listsOpenGauss,Presto,Dsql, andDuckDBalongside the existing entries. Confirmed each has a real*DialectFactoryunderseatunnel-connectors-v2/connector-jdbc/.../internal/dialect/{opengauss,presto,dsql,duckdb}/.JdbcSourceOptions.java:141-151(PARTITION_UPPER_BOUND,PARTITION_LOWER_BOUND): both areOption<String>, notOption<BigDecimal>. The PR's change fromBigDecimal/LongtoStringacross Mysql.md, Oracle.md, SqlServer.md, Vertica.md, OceanBase.md, HiveJdbc.md (en+zh) is correct.JdbcSourceTableConfig.java:42,97-98(DEFAULT_PARTITION_NUMBER = 10): the doc change from "default value is job parallelism" to "default value is 10" forpartition_numacross the same connector set is correct.connector-kafka/.../config/MessageFormat.java: the enum literally containsCOMPATIBLE_DEBEZIUM_JSON,COMPATIBLE_KAFKA_CONNECT_JSON, andMAXWELL_JSON. The Kafka sink/source FAQ format lists were missing these; the fix is accurate.RocketMqSourceOptions.java:50-53:START_MODEdefaults toStartMode.CONSUME_FROM_GROUP_OFFSETS. The old doc only mentioned three modes and never called out the actual default; the new text (5 modes,CONSUME_FROM_GROUP_OFFSETSas default) matches the enum and factory.PulsarSourceOptions.java:80-82:cursor.startup.modedefaults toLATESTand the Javadoc explicitly lists'EARLIEST', 'LATEST', 'SUBSCRIPTION', 'TIMESTAMP'as valid values — the doc addition ofSUBSCRIPTION/TIMESTAMPis accurate.ServerConfigOptions.java:300-304(ENABLE_HTTP):.defaultValue(false).security.md's change from "default istrue" to "default isfalse" is correct — this was a real prior doc bug.RestConstant.java:110-116:/log,/logs,/get-all-log-nameare all registered as REST endpoints (same family as/submit-job,/stop-job, which are documented as running on the REST API port). The change from<node-host>:5801/logto<node-host>:8080/loginlog-analysis-with-ai.md/rest-api-v2.mdis consistent with these being REST endpoints, not Hazelcast member-protocol calls.ReadonlyConfigParser.java:263-278+PrimaryKeyOptions.java:42-46: the actual HOCON key isOptions.key("columnNames"), and the runtime error message literally reads"Schema config need option [primaryKey.columnNames]...". The old doc'scolumnsfield name inschema-feature.mdwas stale;columnNamesis correct.DuckDBTypeConverter.java:199-225: whenprecision > 38, precision is truncated to 38, butscaleis preserved as-is (only clamped ifscale > 38). SoDECIMAL(x,y)withx>38really does map toDECIMAL(38,y), not the old doc's hardcodedDECIMAL(38,18)— this was a real bug in the old text (18was never a meaningful constant here), now fixed in DuckDB.md and Snowflake.md (en+zh).Constant.java:44-54:IMAP_RUNNING_JOB_INFO="engine_runningJobInfo",IMAP_RUNNING_JOB_STATE="engine_runningJobState",IMAP_STATE_TIMESTAMPS="engine_stateTimestamps",IMAP_FINISHED_JOB_STATE="engine_finishedJobState",IMAP_FINISHED_JOB_METRICS="engine_finishedJobMetrics",IMAP_FINISHED_JOB_VERTEX_INFO="engine_finishedJobVertexInfo"— all six match the rewritten IMap table instate-storage-and-recovery.mdexactly. The old doc'srunning-job-state/running-job-metrics/WAL-based model is gone from the codebase; the rewrite (MapStore-based, no WAL) correctly reflects current reality.docs/en/engines/zeta/separated-cluster-deployment.md:263-270already documents theengine*/initial-mode: EAGER/factory-class-name: ...FileMapStoreFactory/namespace/clusterNameMapStore config shape, andFileMapStoreFactory.javaexists at that exact package path. The rewrittenhazelcast.yamlsample instate-storage-and-recovery.mdmatches this reference doc rather than the removed, no-longer-existinghazelcast.fs.base-dir/hazelcast.fs.write-behind-delay-secondskeys.ClientCommandArgs.java:67-68:-m/--masterdescription literally reads"SeaTunnel job submit master, support [local, cluster]"(see alsoMASTER_TYPE_LISTvalidation at line 334-336). The old doc's--master seatunnel://192.168.1.100:5801example was simply wrong — the flag never takes a cluster address. The corrected-m clusterexample plus the note that the client actually reads the target fromhazelcast-client.yamlis accurate.SlsSinkOptions.java:37-41:LOG_GROUP_SIZEdefaults to100— matches the newly addedlog_group_sizerow in Sls.md (en+zh).
Sidebar check: docs/sidebars.js adds getting-started/recipes/jdbc-to-jdbc, engines/zeta/stain-trace, and engines/zeta/stain-trace-quickstart. All three .md files already exist under docs/en/ (and have zh counterparts) — these were simply missing from the sidebar before, not new/renamed docs. No dangling references introduced.
One real regression found:
See Issue 1 below — the Prometheus sink retry option's documented default was changed from a correct value to an incorrect one.
1.2 Compatibility Impact
Fully compatible. This is a documentation-only change; no .java, .yml/.yaml config schema, or config/ template file under source control is modified. Nothing here affects APIs, options, defaults, protocols, serialization, or runtime behavior. No entry is needed in incompatible-changes.md.
1.3 Performance / Side-Effect Analysis
Not applicable — no code path is touched, so there is no CPU/memory/GC/network/lock/retry/idempotency/resource-release impact to assess.
1.4 Error Handling and Logging
Not applicable for the same reason. No exception handling, log levels, or log content changed.
Issue 1: Prometheus sink retry option default is now documented incorrectly, contradicting the actual sink behavior
- Location:
docs/en/connectors/sink/Prometheus.md:53(alsodocs/zh/connectors/sink/Prometheus.md:50) - Problem description:
The PR changes theretryrow's default column from3to-, and rewrites the description to: "Not set by default: the request is attempted once with no retries."
This directly contradictsPrometheusSink.java:63-69:The// Wire the retry options into the HTTP parameter so a transient remote-write failure is // retried instead of failing the caller (a checkpoint flush, batch_size, timer flush, or // close()) on the first blip. The base HttpClientProvider retries transport IOExceptions; // the writer additionally retries retryable HTTP statuses (5xx/429). Retries default to on // (3) when `retry` is not set, since the checkpoint-flush path added in #11827 makes an // un-retried transient failure able to fail a checkpoint. httpParameter.setRetry(pluginConfig.getOptional(PrometheusSinkOptions.RETRY).orElse(3));
retryOption<Integer>itself is declared with.noDefaultValue()inHttpCommonOptions.java:33-37(which is why the doc table's "Default" column can legitimately show-for the Option), but that is not the same thing as the sink's effective runtime behavior. When a user does not setretryat all,PrometheusSinkstill falls back to3retries via.orElse(3)— this is pre-existing behavior from PR #11974, unrelated to and unmodified by this docs PR. The old doc text (3/ "Maximum retry attempts...") was actually the accurate one; this PR flips it to something that no longer matches the code. - Potential risk:
This is exactly the kind of "plausible but wrong" doc error the PR's own stated goal (verify against source) is meant to eliminate. An operator debugging Prometheus remote-write reliability who reads "no retries by default" will either (a) wrongly conclude they need to addretry = 3explicitly to get any resilience against transient 5xx/429s, when it's already there, or (b) misjudge how a transient failure interacts with the checkpoint-flush path referenced in the code comment. It's a low-blast-radius issue (docs only, one connector, one option), but it's a straight factual regression introduced by this PR, not a pre-existing bug being left alone. - Best improvement:
Revert theretryrow to describe the actual effective default. Something like: keepDefaultas3(or- (effectively 3)if you want to keep the Option-level-), and restore language along the lines of: "Maximum retry attempts for a failed remote-write request. When unset, defaults to 3 retries. Retries transportIOExceptions and retryable HTTP statuses (5xxand429); other4xxresponses fail fast. Set to0to disable retries." Apply the same fix to bothdocs/en/connectors/sink/Prometheus.mdanddocs/zh/connectors/sink/Prometheus.md(thezhfile has the identical incorrect change). - Severity: Medium
- Raised by another reviewer: No
2. Code Quality Assessment
2.1 Coding Standards
Not applicable in the usual Java-code sense — there is no new class, method, or field to check for Javadoc/comment completeness. Markdown formatting is consistent with the rest of the docs tree (table alignment, code fences, etc.). One small unrelated-but-welcome cleanup: resource-isolation.md fixes a typo'd code-fence language tag (```hacon → ```hocon) in both en and zh, and checkpoint-storage.md fixes //-style comments inside a HOCON/YAML sample to the correct # comment syntax — both are accurate, minor corrections.
2.2 Test Coverage and Test Stability
No UT/E2E test code is touched by this PR (confirmed via git diff apache/dev...HEAD — all 73 changed files are under docs/ plus docs/sidebars.js). Per the PR's nature (pure documentation), no new tests are expected or required, and the mandatory test-stability analysis in Section 5.10.2 of the review protocol does not apply here.
2.3 Documentation Updates
docs/enanddocs/zhare updated together for every file that has a language pair touched in this diff. I checked this pairing explicitly (e.g.Jdbc.md,Kafka.md,Mysql.md,Prometheus.md,Sls.md,DuckDB.md,Snowflake.md,state-storage-and-recovery.md,rest-api-job-lifecycle.md,tuning-guide.md,submit-job-to-remote-zeta-cluster.md,schema-feature.md) and the corrective content matches on both sides line-for-line in meaning.- One asymmetric addition:
docs/zh/connectors/sink/Aerospike.mdgains a new "Writing CDC records to Aerospike via thekvformat" section (41 added lines, no deletions) that was already present indocs/en/connectors/sink/Aerospike.mdbefore this PR (samedata_format = "kv"example, confirmed theKVformat value exists inDataFormatType.java:28). This isn't a new inconsistency — it's this PR closing a pre-existing en/zh gap, which is exactly what Section 5.11 of the review protocol asks for. - No example, default command, or default resource in this diff was found to be unusable. The command/URL corrections (
-m cluster,$SEATUNNEL_HOME/bin/seatunnel.sh --savepoint <job-id>,http://<node-host>:8080/log,jmap -heap <pid>) all check out against source as noted in 1.1.
3. Architectural Soundness
3.1 Elegance of the Solution
Precise fix (for the vast majority of the diff) — this is a targeted, source-verified correction pass, not a rewrite-for-rewrite's-sake or a workaround. Issue 1 is the one spot where "verified against source" wasn't actually verified.
3.2 Maintainability
The doc structure and table formats are unchanged; only cell values and prose are corrected in place, which keeps the diff easy to review and keeps future doc/code drift easy to spot. The state-storage-and-recovery.md rewrite in particular is a meaningful maintainability improvement — the old WAL/hazelcast.fs.* model documented something that no longer exists in the codebase, which would have misled anyone troubleshooting IMap/MapStore disk usage.
3.3 Extensibility
Not really applicable to a docs-accuracy pass — there's no new pattern being introduced. Worth noting as a general process point (not a request-for-change here): a lot of this drift (BigDecimal→String, WAL→MapStore, columns→columnNames) happened silently over multiple unrelated code PRs without doc updates landing alongside them, which is the same class of gap Section 6 of the review protocol expects normal feature PRs to close for docs/en+docs/zh on every user-visible change.
3.4 Historical-Version Compatibility
No compatibility concerns — this PR touches no code, schema, protocol, or default value in the shipped product. It only corrects text that describes behavior which already exists on dev.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| 1 | Prometheus sink retry default documented as "no retries" but the sink actually defaults to 3 retries (PrometheusSink.java:69, .orElse(3)) |
docs/en/connectors/sink/Prometheus.md:53, docs/zh/connectors/sink/Prometheus.md:50 |
Medium |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
-
Blockers — must be fixed
- None. Issue 1 is Medium severity (docs-only regression, no runtime/compatibility impact), so it does not need to gate CI or block the branch from being mergeable in a strict sense.
-
Recommended fixes — non-blocking
- Issue 1: please restore the
retrydefault description to matchPrometheusSink.java's actual.orElse(3)fallback before merging. Given the PR's stated goal is specifically "verified against source code," I'd treat this one as worth fixing pre-merge rather than as a follow-up, even though it's not a hard blocker — otherwise the PR ships with exactly the kind of "plausible-sounding but wrong" claim it set out to eliminate elsewhere.
- Issue 1: please restore the
Overall assessment: This is a genuinely useful, well-scoped documentation-accuracy PR. I traced 18+ of the option/config/endpoint claims it changes directly against the connector and engine source (JdbcSourceOptions, MessageFormat, RocketMqSourceOptions, PulsarSourceOptions, ServerConfigOptions, RestConstant, ReadonlyConfigParser/PrimaryKeyOptions, DuckDBTypeConverter, Constant.java, FileMapStoreFactory, ClientCommandArgs, SlsSinkOptions) spanning JDBC connectors, Kafka, RocketMQ, Pulsar, SLS, DuckDB/Snowflake, and half a dozen Zeta engine docs, and every one of them checked out as accurate except the single Prometheus retry regression flagged above. The state-storage-and-recovery.md rewrite in particular is a substantial, accurate improvement over docs that described a WAL-based persistence model the engine no longer has. No sidebar entries are dangling, no en/zh pair was left inconsistent, and no example or command was found to be unusable. I don't see a better alternative implementation to suggest — the approach (grep the doc claim, find the matching Option/class, compare) is exactly right for this kind of PR; it just needs one more pass on the one option above.
|
The DuckDB unsigned rows here need coordination with #12508. This diff changes UTINYINT/USMALLINT/UINTEGER/UBIGINT to TINYINT/SMALLINT/INT/BIGINT to match the older converter, while #12508 fixes that narrowing and preserves the full unsigned ranges as SMALLINT/INT/BIGINT/DECIMAL(20,0). It also adds a paragraph documenting those widened mappings. If both PRs merge as currently written, the type table and the new paragraph will contradict each other. Could the unsigned-row changes retain the widened mappings when the range fix lands? The separate ARRAY/STRUCT/MAP → STRING and zoned-timestamp corrections are useful and do not need to be dropped. |
Resolve the merge conflicts with dev: keep this branch's corrected default port (8080) in the log endpoint examples and add dev's sentence about the log size limit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks @zhangshenghang for the documentation pass, and sorry for the long gap since my first review. Since then the head moved only through a merge of dev (193b44c), and @hutiefang76 left a comment about the DuckDB unsigned-integer rows, which I want to answer here. I re-reviewed the latest head from scratch. One sincere apology up front: the overlap that @hutiefang76 describes was already in the diff when I first reviewed it, and I should have flagged it then. I am adding it below as a carryover from my earlier review, not as something new in this version.
What Problem Does This PR Solve?
- User pain point: many connector and Zeta engine docs had drifted from the code (stale option types and defaults, a renamed config key, outdated IMap and MapStore descriptions, REST log endpoints pointing at the wrong port, and so on), so users following the docs got wrong configurations.
- Fix approach: walk each touched doc against the matching
Optiondefinitions, REST controllers, CLI parsers and engine constants, and correct the type, default, required flag or described behavior, in bothdocs/enanddocs/zh. - One-sentence summary: a broad, source-verified documentation accuracy pass (73 files, docs only).
1. Code Change Review
1.1 Core Logic Analysis
Is the author's change unchanged? Yes. The PR still has one author commit (9cb204b039) plus the dev merge. Three-dot against current dev (0278a6a747) it is still 73 files (+389 / -421) and all of them are under docs/. For each file I compared the lines this PR adds or removes, relative to each head's merge base, against the version I reviewed, and they are the same. The only difference is that docs/zh/engines/zeta/rest-api-v2.md now sits next to a dev paragraph about log-response size limits (#12299), which is just context. A trial merge with current dev has no conflict markers, and GitHub reports the PR as mergeable.
Re-checks at the current head and current dev:
PrometheusSink.java:69is stillhttpParameter.setRetry(pluginConfig.getOptional(PrometheusSinkOptions.RETRY).orElse(3)), so my earlier Issue 1 still applies and is unchanged (see below).- The DuckDB type tables: the PR's new
ARRAY/STRUCT/MAP -> STRING,TIMESTAMP WITH TIME ZONE -> TIMESTAMP_TZ, andDECIMAL(38,y)rows matchDuckDBTypeConverteron dev (the complex types are mapped toSTRING, the timestamp-with-zone case has its own branch, and an oversized precision is truncated while the scale is preserved). The sink sideTINYINT -> TINYINT,SMALLINT -> SMALLINT,TIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONEalso matches the sink converter. - The PostgreSQL-CDC
server-time-zonedefault changed fromUTCto-: the option's default isZoneId.systemDefault().getId()(connector-cdc-baseJdbcSourceOptions.java:62-68), so-(system default) is the more accurate cell.
Reply to @hutiefang76 (DuckDB unsigned rows, #12508): you are right, and I am adding a +1. On current dev the source-side doc table (docs/en/connectors/source/DuckDB.md) already describes the widened mapping (UTINYINT -> SMALLINT, USMALLINT -> INT, UINTEGER -> BIGINT, UBIGINT -> DECIMAL(20,0)), while DuckDBTypeConverter on dev still narrows (UTINYINT -> BYTE, USMALLINT -> SHORT, UINTEGER -> INT, UBIGINT -> LONG; lines 111-127). So this PR's four unsigned-row edits are correct against dev's code today. However, #12508 (still open) changes the converter to the widened mapping and adds a paragraph that says so. If both merge as written, the table (narrow) and that paragraph (wide) contradict each other. See Issue 2.
1.2 Compatibility Impact
Fully compatible. Documentation only. No .java, config schema or template file is modified, so nothing affects APIs, options, defaults, protocols or serialization, and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
Not applicable: no code path is touched.
1.4 Error Handling and Logging
Not applicable.
Issue 1 (Medium, unchanged from my first review): Prometheus sink retry default is documented as "no retries", but the sink defaults to 3 retries.
- Location:
docs/en/connectors/sink/Prometheus.md:53,docs/zh/connectors/sink/Prometheus.md:50. - Problem: the PR changes the
retryrow from default3to-and says "Not set by default: the request is attempted once with no retries".PrometheusSink.java:69falls back to.orElse(3)whenretryis not set, so the old text was the accurate one. The Option itself has no default (HttpCommonOptions), which is why-is tempting, but the effective runtime behavior is 3 retries. - Risk: an operator may add
retry = 3believing it is needed, or misjudge how a transient 5xx/429 interacts with the checkpoint-flush path. - Best improvement: restore the row to describe the effective default, for example default
3and "When unset, defaults to 3 retries. Retries transportIOExceptions and retryable HTTP statuses (5xxand429); other4xxresponses fail fast. Set to0to disable retries." Apply the same fix to the zh file. - Severity: Medium. Raised by another reviewer: No.
Issue 2 (Medium, carryover from my first review, I missed it then): the DuckDB unsigned-integer rows will contradict #12508 once it merges.
- Location:
docs/en/connectors/source/DuckDB.md:61-66anddocs/zh/connectors/source/DuckDB.md:58-63(theUTINYINT,USMALLINT,UINTEGER,UBIGINTrows). - Problem: see the reply above. This is the same point @hutiefang76 raised on 2026-09-30, so I am +1 on it and not counting it twice. It was visible in the first version of the diff, so it is an omission from my earlier review and not new in this head.
- Risk: after both PRs land, the table says unsigned types are narrowed while the adjacent paragraph from #12508 says they are widened, and users mapping UBIGINT would read a type that can wrap negative values.
- Best improvement: Option A (preferred): drop the four unsigned-row edits from this PR so those rows stay exactly as they are on dev (they already describe the widened mapping that #12508 implements), and keep the other DuckDB corrections (
ARRAY/STRUCT/MAP -> STRING,TIMESTAMP_TZ,DECIMAL(38,y)), which do not conflict. Option B: merge #12508 first and then update the rows here. Option A needs no merge ordering, because the rows stay as dev has them. - Severity: Medium. Raised by another reviewer: Yes (@hutiefang76, issue comment on 2026-09-30).
2. Code Quality Assessment
2.1 Coding Standards
Markdown formatting is consistent. The small fixes (hacon to hocon, // comments to # in a HOCON sample) are correct.
2.2 Test Coverage and Test Stability
No UT or E2E code is touched, so no new tests are expected and the test-stability analysis does not apply.
2.3 Documentation Updates
docs/en and docs/zh are updated together for each paired file, and the three new sidebar entries point at pages that already exist. The remaining mismatches are the two items above.
3. Architectural Soundness
3.1 Elegance of the Solution
Precise fix: targeted, source-verified corrections rather than a rewrite.
3.2 Maintainability
Only cell values and prose are corrected in place, which keeps the diff reviewable. The state-storage-and-recovery.md rewrite is a real improvement.
3.3 Extensibility
Not applicable to a docs accuracy pass.
3.4 Historical-Version Compatibility
No compatibility concern.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| 1 | Prometheus retry default documented as no retries, but the sink defaults to 3 (PrometheusSink.java:69) |
docs/en/connectors/sink/Prometheus.md:53, docs/zh/connectors/sink/Prometheus.md:50 |
Medium |
| 2 | DuckDB unsigned-integer rows contradict the widened mapping that #12508 implements and documents (carryover, +1 to @hutiefang76) | docs/en/connectors/source/DuckDB.md:61-66, docs/zh/connectors/source/DuckDB.md:58-63 |
Medium |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers - must be fixed: none. Both items are documentation-only and have no runtime impact.
- Recommended fixes - non-blocking: Issue 1 and Issue 2 above. Because this PR's goal is "verified against source", I would fix both before merging so the PR does not ship with a mismatch of its own or one that collides with #12508.
CI and sync status (checked live for head 193b44c):
- The fork
Buildrun for this head (run 37392115914) completedsuccess, and the apache-sideBuild,labelerandNotify test workflowchecks are allSUCCESS. CI is not a blocker. - The branch is diverged (
ahead_by=2,behind_by=43against dev) but has no merge conflicts and is mergeable, so a sync is not required. The remaining merge gate is a review approval from someone with write access.
Thank you again for this useful cleanup, the overall change is in very good shape.
# Conflicts: # docs/en/connectors/sink/Databend.md # docs/zh/connectors/sink/Databend.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks again @zhangshenghang for this large documentation accuracy pass, and thank you for your patience through the long review cycle. The head moved since my last review (a merge of dev, 3bb826c68f, which resolved conflicts in the Databend pages), so I re-read the whole current diff from scratch (73 files, all under docs/ plus docs/sidebars.js) against the current dev head (fb8e7a7eea) and re-checked the claims against the source. Sorry for missing a few things in the earlier rounds; they are labelled as carryovers below. I also have to correct one statement from my first review (see Issue 4).
What Problem Does This PR Solve?
- User pain point: many connector and Zeta engine docs drifted from the code (option types and defaults, config keys, IMap names, REST log endpoints, CLI examples), so users following them get wrong configurations.
- Fix approach: walk each doc against the matching
Optiondefinitions, converters, REST/Jetty wiring and CLI parser, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a broad, mostly source-verified documentation accuracy pass; docs only.
1. Code Change Review
1.1 Core Logic Analysis
This is a docs-only change, so "core logic" means "does the corrected text match the code on dev". The normal user path (reading these pages and copying options, defaults, commands) reaches every changed line.
Status of my previous findings at this head:
| Prior finding | Status at 3bb826c68f |
|---|---|
Issue 1: Prometheus retry default documented as "no retries" |
NOT resolved. Rows unchanged in en and zh. |
| Issue 2: DuckDB unsigned rows vs #12508 (raised by @hutiefang76, +1) | NOT resolved. The four unsigned-row edits are still in both languages, and #12508 is still open (and currently conflicting). |
Re-verified correct against current dev (spot checks across the diff):
- DataHub:
TablePlaceholderonly definestable_name(notablekey), andTableSinkFactoryContext.replacePlaceholderAndCreateis the only replacement path, so${table_name}is the right placeholder. - JDBC partition options:
partition_lower_bound/partition_upper_boundare String options andpartition_numfalls back to 10, as the PR states. enable-http:ServerConfigOptions.ENABLE_HTTPhasdefaultValue(false). Worth knowing for readers: the shippedconfig/seatunnel.yamlsetsenable-http: true, so a default install still serves 8080./logand/logsare registered as Jetty servlets inJettyService(lines 285-286), so:8080/logis correct. The anchor#get-log-content-from-a-single-nodeexists inrest-api-v2.md.- CLI:
-m/--masteraccepts onlylocal/cluster;--restore,--restore-with-checkpointand--savepointexist inClientCommandArgs. - Sink/source type tables: DuckDB
ARRAY/STRUCT/MAP -> STRING,TIMESTAMP WITH TIME ZONE -> TIMESTAMP_TZ,DECIMAL(38,y); SQL ServerDATETIMEOFFSET -> OFFSET_DATE_TIME, rowversionTIMESTAMP -> BYTES,IMAGE/BINARY/VARBINARY -> BYTES; SnowflakeGEOGRAPHY/GEOMETRY -> STRINGandTIMESTAMP_LTZ/TZ -> OFFSET_DATE_TIMEall match the*TypeConverterclasses. - The three new sidebar entries point at existing pages.
- Databend: the conflict resolution with dev is clean. Dev had already removed the
generate_sink_sqlreference, so the row is now only a small wording addition ("No default is applied when unset"). That is harmless, but the PR description's Databend bullet is now stale.
1.2 Compatibility Impact
Fully compatible. Docs only; no .java, config template or schema is touched, so no API, option, default, serialization or checkpoint behavior changes and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
Not applicable: no code path is touched.
1.4 Error Handling and Logging
Not applicable. The findings below are all documentation accuracy issues.
Issue 1: Prometheus sink retry documented as "no retries by default" (still open)
- Location:
docs/en/connectors/sink/Prometheus.md:53,docs/zh/connectors/sink/Prometheus.md:50 - Problem description: the PR changes the default from
3to-and says "the request is attempted once with no retries". On currentdev,PrometheusSink.java:69is stillhttpParameter.setRetry(pluginConfig.getOptional(PrometheusSinkOptions.RETRY).orElse(3)). The Option has no default (hence the tempting-), but the effective runtime default is 3 retries, so the old text was the accurate one. - Potential risk: operators debugging transient 5xx/429 from remote-write will wrongly believe retries are off, or add
retry = 3believing it is required. - Best improvement: restore the row: default
3, and "When unset, defaults to 3 retries. Retries transportIOExceptions and retryable HTTP statuses (5xxand429); other4xxresponses fail fast. Set to0to disable retries." Same for zh. - Severity: Medium
- Raised by another reviewer: No (carryover from my first review, unchanged).
Issue 2: DuckDB unsigned-integer rows will contradict #12508 (still open)
- Location:
docs/en/connectors/source/DuckDB.md:61-66,docs/zh/connectors/source/DuckDB.md:58-63 - Problem description:
devcurrently documents the widened mapping (UTINYINT -> SMALLINT,USMALLINT -> INT,UINTEGER -> BIGINT,UBIGINT -> DECIMAL(20,0)) whileDuckDBTypeConverterstill narrows (UTINYINT -> BYTE...UBIGINT -> LONG). This PR rewrites the rows to the narrow mapping, which matches today's code, but #12508 (open) changes the converter to the widened mapping and documents it. If both land, the table and the paragraph from #12508 contradict each other, and the narrowUBIGINT -> BIGINTrow would suggest values above 2^63-1 can wrap. - Potential risk: users mapping UBIGINT/UINTEGER read the wrong target type.
- Best improvement: drop the four unsigned-row edits from this PR (leave those rows as on
dev) and keep the other DuckDB corrections, which do not conflict. Alternatively land #12508 first and rebase. - Severity: Medium
- Raised by another reviewer: Yes (@hutiefang76, +1 from me).
Issue 3: JDBC sink dialect list now contains the same dialect twice (carryover, new in the PR, I missed it before)
- Location:
docs/en/connectors/sink/Jdbc.md:260-262,docs/zh/connectors/sink/Jdbc.md(same rows) - Problem description: sorry for missing this in the last review. The sink page already had a stray
DSQLcell. The PR addsDsqlin the new rowOpenGauss | Presto | Dsqlbut keepsDSQLin the next rowDuckDB | DSQL | YashanDB.DatabaseIdentifier.DSQLis the string"Dsql", so the dialect appears twice in different casing. The source Jdbc page does not have this problem. - Potential risk: confusing for readers, and the stray uppercase spelling is not the registered identifier.
- Best improvement: remove the
DSQLcell so the table endsDuckDB | YashanDB, as in the source page. - Severity: Medium
- Raised by another reviewer: No.
Issue 4: state-storage-and-recovery.md says there is no WAL, but IMap persistence is WAL based (carryover, and a correction of my first review)
- Location:
docs/en/engines/zeta/state-storage-and-recovery.mdsections 3-4 and the "MapStore namespace directory growing" / "Safe cleanup checklist" parts; zh counterpart - Problem description: in my first review I wrote that the WAL-based model "is gone from the codebase". That was wrong, and I am sorry.
FileMapStoredelegates toIMapFileStorage, which writes throughWALDisruptor/WALWriter/WALReader(WALEventType.APPEND/CLEAR/CLOSED) into<namespace>/<clusterName>/<businessName>/<region>/, andseparated-cluster-deployment.md/hybrid-cluster-deployment.mdondevthemselves refer to the "IMap WAL writer". What the old page got wrong were thehazelcast.fs.*keys, thewal/layout and the IMap names; those fixes are right. But the new text (a) states the persistence is not a WAL and (b) tells operators that "files of finished jobs whose records have already expired ... can be removed while the cluster is stopped" and to "delete files of expired jobs". I could not find per-job files or any compaction in the storage plugin: entries of all jobs are appended into the same region files, so there are no job-scoped files to pick out. This is an inference from reading the plugin code, not something I ran. - Potential risk: an operator hand-deleting files under the namespace can corrupt IMap replay on the next master start, and cleanup advice that cannot be followed is worse than none.
- Best improvement: describe the storage as an append-only write-ahead log written under the namespace, keep the monitoring advice (
du,history-job-expire-minutes), and replace "delete files of expired jobs" with guidance that does not involve selective file deletion (for example: size the namespace volume, and wipe the whole namespace only with the cluster stopped and when losing all running-job state is acceptable). - Severity: Medium
- Raised by another reviewer: No.
Issue 5: Chinese Snowflake source page still says geospatial return type depends on JDBC URL parameters
- Location:
docs/zh/connectors/source/Snowflake.md:154 - Problem description: the English page was updated to "Snowflake geospatial columns are mapped to the SeaTunnel
STRINGtype", but the zh page keeps "bytes/string depending onGEOGRAPHY_OUTPUT_FORMAT", which contradicts the mapping table on the same page (GEOGRAPHY/GEOMETRY -> STRING). This is the en/zh drift the PR set out to remove. - Potential risk: zh readers expect BYTES for some URL settings.
- Best improvement: apply the same sentence as the English page.
- Severity: Low
- Raised by another reviewer: No (carryover).
Issue 6: Snowflake DECIMAL(p, s) with p > 38 mapped to DECIMAL(38, s) is not what the converter does
- Location:
docs/en/connectors/source/Snowflake.md:49,docs/en/connectors/sink/Snowflake.md:47, and the zh pages - Problem description:
SnowflakeTypeConverter.reconvertreduces the scale when precision is truncated (scale = max(0, scale - (precision - 38))), andconverthas nop > 38branch at all (Snowflake itself caps precision at 38). SoDECIMAL(38, s)is accurate only when no truncation happens. The oldDECIMAL(38, 18)was wrong too, but the PR's goal is exactness. The DuckDB equivalent (DECIMAL(38,y)) is correct because DuckDB keeps the scale. - Potential risk: low; users may expect the scale to be preserved when it is shrunk.
- Best improvement: write
DECIMAL(38, s - (p - 38))(minimum 0) for the sink, or drop the row on the source page. - Severity: Low
- Raised by another reviewer: No.
Issue 7: Capacity formula still uses the removed max-concurrent setting
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md(Capacity Planning, "Formula: checkpoint_size ~ ... * max_concurrent_checkpoints"), zh counterpart - Problem description: the PR removes
checkpoint.max-concurrentas a non-existent key but the sizing formula in section 6 still multiplies bymax_concurrent_checkpoints. - Potential risk: low; readers look for a setting that does not exist.
- Best improvement: drop the factor (or state it is 1 because only one checkpoint is in flight).
- Severity: Low
- Raised by another reviewer: No.
2. Code Quality Assessment
2.1 Coding Standards
Markdown is consistent. The hacon to hocon and // to # fixes are correct. Tables I checked still have consistent pipe counts.
2.2 Test Coverage and Test Stability
No UT/E2E code is changed, so no test-stability rating applies.
2.3 Documentation Updates
en and zh are updated together for each paired file, apart from Issue 5. The Aerospike zh section closes an existing en/zh gap. I did not run a docs build.
3. Architectural Soundness
3.1 Elegance of the Solution
Precise fix for most of the diff; Issue 4 is the one place where the rewrite replaced one inaccurate description with another.
3.2 Maintainability
Edits are in place and reviewable; the state-storage-and-recovery.md rewrite is a real improvement once the WAL point is fixed.
3.3 Extensibility
Not applicable.
3.4 Historical-Version Compatibility
No compatibility concern; text only.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | Prometheus retry documented as no retries; code defaults to 3 (PrometheusSink.java:69) |
docs/{en,zh}/connectors/sink/Prometheus.md |
Medium |
| 2 | DuckDB unsigned rows contradict #12508 (+1 @hutiefang76) | docs/{en,zh}/connectors/source/DuckDB.md |
Medium |
| 3 | JDBC sink dialect table lists Dsql and DSQL |
docs/{en,zh}/connectors/sink/Jdbc.md |
Medium |
| 4 | State-storage page denies the IMap WAL and advises deleting per-job files that do not exist | docs/{en,zh}/engines/zeta/state-storage-and-recovery.md |
Medium |
| 5 | zh Snowflake source geospatial note contradicts the table | docs/zh/connectors/source/Snowflake.md:154 |
Low |
| 6 | Snowflake DECIMAL(38, s) ignores scale reduction on truncation |
Snowflake source/sink pages (en, zh) | Low |
| 7 | Sizing formula references removed max-concurrent |
docs/{en,zh}/engines/zeta/state-storage-and-recovery.md |
Low |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers - must be fixed
- None are runtime blockers (docs only). Given that this PR's stated goal is "verified against source", I would fix Issues 1-4 before merging so it does not ship its own mismatches or collide with #12508.
- Recommended fixes - non-blocking
- Issues 5-7, and refresh the PR description (Databend bullet).
CI and sync status (live, head 3bb826c68f): the apache-side Build, labeler and Notify test workflow checks are all SUCCESS. The PR is mergeable with no conflicts; the remaining gate is an approval from someone with write access (REVIEW_REQUIRED). I am not asking for a sync.
Overall assessment: the large majority of the 73-file change is accurate and valuable, and the author has handled the dev merge cleanly. The four Medium items are small, local edits. Thank you again for the careful work, and sorry that some of these should have been raised earlier.
… and storage cleanup guidance - Restore the Prometheus sink retry default of 3 in en/zh (the sink applies orElse(3)); 0 disables retries. - Revert the four DuckDB unsigned-integer mapping rows to the current dev wording to avoid conflicting with apache#12508, which widens the converter. - Drop the duplicated DSQL dialect cell from the JDBC sink dialect table. - Describe the IMap MapStore as an append-only write-ahead log and replace the per-job file deletion advice with volume sizing plus a full-namespace wipe, since all jobs share the same region files. - Align the zh Snowflake geospatial sentence with the en page. - Document the Snowflake sink scale reduction for p > 38 and drop the inaccurate source row. - Remove the removed max-concurrent factor from the capacity formula.
|
All seven review points are addressed in e1ff7a3:
|
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the update @zhangshenghang, and for the clear point-by-point reply. The head moved to e1ff7a3c37 with the "Address review" commit, which is the only change since my last review at 3bb826c68f. I re-checked every one of my seven carried-over findings against that commit and against the current dev source, and all seven are resolved. Thank you for the careful follow-through.
What Problem Does This PR Solve?
- User pain point: many connector and Zeta engine docs drifted from the code (option types and defaults, config keys, IMap names, REST log endpoints, CLI examples), so users following them get wrong configurations.
- Fix approach: walk each doc against the matching
Optiondefinitions, converters, REST/Jetty wiring and CLI parser, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a broad, source-verified documentation accuracy pass; docs only (73 files).
1. Code Change Review
1.1 Core Logic Analysis
Docs only, so "core logic" means "does the text match the code on dev". The delta since my last review is 12 files (6 en, 6 zh) and nothing under src/**. Status of my previous findings at this head:
| Prior finding | Status at e1ff7a3c37 |
Evidence |
|---|---|---|
Issue 1: Prometheus retry documented as "no retries" |
Resolved | docs/{en,zh}/connectors/sink/Prometheus.md retry row is back to default 3, "When unset, defaults to 3 retries", 0 disables. PrometheusSink.java:69 still uses .orElse(3). This is identical to the row on dev. |
| Issue 2: DuckDB unsigned rows vs #12508 | Resolved | The four unsigned rows in docs/{en,zh}/connectors/source/DuckDB.md are back to the dev wording (UTINYINT/SMALLINT -> SMALLINT, USMALLINT/INTEGER -> INT, UINTEGER/BIGINT -> BIGINT, UBIGINT -> DECIMAL(20,0)). The remaining DuckDB hunks (ARRAY/STRUCT/MAP -> STRING, TIMESTAMP_TZ, DECIMAL(38,y)) are kept, so there is no overlap with #12508 any more. |
Issue 3: JDBC sink dialect table lists Dsql and DSQL |
Resolved | The stray cell is gone; the last row is DuckDB | YashanDB, and Dsql appears once. |
| Issue 4: state-storage page denied the WAL and advised deleting per-job files | Resolved | en and zh now say the persistence is an append-only write-ahead log (FileMapStore to IMapFileStorage, shared region files), the maintenance section, troubleshooting fix and cleanup checklist no longer suggest selective file deletion, and they say that only a full namespace wipe with the cluster stopped is safe. No "expired" per-job deletion advice remains in either language. |
| Issue 5: zh Snowflake geospatial sentence | Resolved | docs/zh/connectors/source/Snowflake.md now says geospatial columns map to STRING, matching en and the table. |
Issue 6: Snowflake DECIMAL(38, s) for p > 38 |
Resolved | The sink rows now read DECIMAL(38, s - (p - 38)) (minimum scale 0), matching SnowflakeTypeConverter (scale = max(0, scale - (precision - MAX_PRECISION)), around line 229). The unimplementable source row was dropped in en and zh. |
Issue 7: capacity formula used removed max-concurrent |
Resolved | The factor is removed in en and zh, with a note that only one checkpoint is in flight. |
No new problems were introduced by the new commit. I looked at the table pipe structure of the edited Jdbc and Snowflake tables and the en/zh pairing of every hunk in the delta.
1.2 Compatibility Impact
Fully compatible. Docs only; no .java, config template or schema is touched, so no API, option, default, serialization or checkpoint behavior changes and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
Not applicable: no code path is touched.
1.4 Error Handling and Logging
Not applicable. No open issues remain from my side. One optional housekeeping note: the PR description's Databend bullet is stale after the dev merge (dev already removed the generate_sink_sql reference). This is not a blocker.
2. Code Quality Assessment
2.1 Coding Standards
Markdown and table structure are consistent in the touched areas. No Java is changed, so method-comment requirements do not apply.
2.2 Test Coverage and Test Stability
No test files are changed. Stability rating: not applicable.
2.3 Documentation Updates
en and zh are updated together for every paired file in the delta (Jdbc sink, Prometheus sink, Snowflake sink and source, DuckDB source, state-storage-and-recovery). I did not run a docs site build.
3. Architectural Soundness
A precise, reviewable accuracy pass. The earlier state-storage-and-recovery.md rewrite is now accurate about the storage model and safe about cleanup.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| - | No open issues | - | - |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers: none.
- Non-blocking: refresh the PR description (Databend bullet).
CI and sync status (live, head e1ff7a3c37): the apache-side Build, labeler and Notify test workflow checks are all green. GitHub reports no merge conflict; the PR is 10 commits behind dev, but with green head-specific CI that is recorded only and I am not asking for a sync. The remaining gate is an approval from someone with write access (REVIEW_REQUIRED). Thank you again for the thorough work.
# Conflicts: # docs/en/engines/zeta/rest-api-job-lifecycle.md # docs/en/engines/zeta/security.md # docs/en/introduction/concepts/schema-feature.md # docs/zh/engines/zeta/rest-api-job-lifecycle.md # docs/zh/engines/zeta/security.md # docs/zh/introduction/concepts/schema-feature.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks again @zhangshenghang. The head moved from e1ff7a3c37 (which I approved) to 38a8eb36ed, a merge of the latest dev into the branch. Because the head changed, I re-read the whole current diff against dev from scratch instead of only the increment, and the approval still stands.
What Problem Does This PR Solve?
- User pain point: many connector and Zeta engine docs drifted from the code (option types and defaults, config keys, IMap names, REST log endpoints, CLI examples), so users following them end up with wrong configurations.
- Fix approach: walk each doc against the matching
Optiondefinitions, converters, REST wiring and CLI parser, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a broad, source-verified documentation accuracy pass; docs only.
1. Code Change Review
1.1 Core Logic Analysis
Docs only. Against the current dev tip (6b63aca173) the PR is now 66 files, all under docs/ (en, zh and docs/sidebars.js); nothing under src/** and no workflow file is touched.
What changed since the head I approved:
- The merge conflicted in
rest-api-job-lifecycle.md,security.mdandschema-feature.md(en and zh). Dev's#12932landed the same fixes (theenable_httpdefault,primaryKey.columnNames, the REST lifecycle wording), so these files, plusrest-api-v2.mden/zh, now fall out of the PR diff. The resolved ensecurity.mdandschema-feature.mdare identical todevand still carry the corrected content, so nothing from the earlier fix set was lost. The PR therefore shrank from 73 to 66 files with no content regression. - The seven findings from my previous round are still resolved at this head: Prometheus
retrydefault is3(Prometheus.md:53), the DuckDB unsigned rows match dev wording (DuckDB.md:64stillUBIGINT -> DECIMAL(20,0), so there is no overlap with #12508), the JDBC sink dialect table endsDuckDB | YashanDB(Jdbc.md:261), and there is nomax-concurrentresidue in eitherstate-storage-and-recovery.md.
1.2 Compatibility Impact
Fully compatible. Docs only; no API, option, default, serialization or checkpoint behavior changes, and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
Not applicable: no code path is touched.
1.4 Error Handling and Logging
Not applicable. No blocking issues found.
Two optional, non-blocking observations:
Issue 1: zh heading for section 6.3 diverges from en
- Location:
docs/zh/engines/zeta/rest-api-job-lifecycle.mdsection 6.3 vsdocs/en/engines/zeta/rest-api-job-lifecycle.md:326 - Problem: the merge left the zh heading reworded (it now reads "About restoring from a specified Savepoint") while en (taken from dev) is still "6.3 Restoring from an explicit savepoint path". The body text of both is the same and correct (the REST API cannot select a specific savepoint path).
- Potential risk: only a cosmetic difference between language versions and a different anchor name; no functional impact.
- Best improvement: either align the two headings in a follow-up, or leave as is.
- Severity: Low
- Raised by another reviewer: no
Issue 2: stale PR description
- Problem: the description still lists items that
devhas since fixed by itself (for example the Databend bullet and the REST/security items listed in the description). - Best improvement: refresh the description so it reflects the 66-file diff.
- Severity: Low
- Raised by another reviewer: no
2. Code Quality Assessment
2.1 Coding Standards
Markdown and table structure are consistent in the touched areas. No Java is changed.
2.2 Test Coverage and Test Stability
No test files are changed. Stability rating: not applicable.
2.3 Documentation Updates
en and zh are updated together for the paired files, and the three new sidebar entries point to pages that exist. I did not run a docs site build.
3. Architectural Soundness
A precise, reviewable accuracy pass. Maintainability is good because each corrected row can be traced to an Option or enum in the source. The change is fully backward compatible with all earlier versions.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | zh 6.3 heading differs from en | docs/zh/engines/zeta/rest-api-job-lifecycle.md |
Low |
| 2 | PR description is stale | PR body | Low |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers: none.
- Recommended non-blocking: the two Low items above.
CI and sync status (live, head 38a8eb36ed): the apache-side Build and Signal pull request update checks are green. GitHub reports mergeStateStatus=BLOCKED only because a review from someone with write access is still required; there is no merge conflict, and the branch is 1 commit behind dev, which is recorded as metadata only. This review is static analysis; I did not build the docs site or run anything locally.
# Conflicts: # docs/en/connectors/sink/SqlServer.md # docs/en/connectors/source/Jdbc.md # docs/en/connectors/source/Kafka.md # docs/en/connectors/source/PostgreSQL-CDC.md # docs/zh/connectors/sink/SqlServer.md # docs/zh/connectors/source/Jdbc.md # docs/zh/connectors/source/Kafka.md # docs/zh/connectors/source/PostgreSQL-CDC.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks @zhangshenghang. The head moved from 38a8eb36ed (which I approved) to 45283bbb31, again only by a merge of the latest dev. I re-verified the full diff against the new head instead of only the increment, and my approval still stands.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs had drifted from the code (option types and defaults, dialect lists, storage and recovery guidance), so users following them end up with wrong configuration.
- Fix approach: walk each page against the matching
Optiondefinitions, converters and REST wiring, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a source-verified documentation accuracy pass; docs only.
1. Code Change Review
1.1 Core Logic Analysis
Docs only. The PR now touches 56 files, all under docs/ (en, zh and docs/sidebars.js); nothing under src/** and no workflow file. The dev merge changed Jdbc.md (en/zh), Pulsar.md (en/zh) and zh/engines/zeta/rest-api-job-lifecycle.md, which overlap with this PR, so I re-read those hunks:
docs/{en,zh}/connectors/sink/Jdbc.md: the dialect table still lists the dialects added by the PR (OpenGauss,Presto,DuckDB) next to dev's existingDsqlandYashanDB; dev's table does not contain the added names, so there is no duplicate row.docs/{en,zh}/connectors/source/Pulsar.md: the FAQ now listsEARLIEST,LATEST,SUBSCRIPTIONandTIMESTAMPstartup modes, unchanged from what I verified earlier.- The seven findings from my earlier rounds (Prometheus
retrydefault3, DuckDB unsigned rows left at dev wording so there is no overlap with #12508, the JDBC sink dialect table, nomax-concurrentresidue instate-storage-and-recovery.md, and the rest) are still resolved at this head.
1.2 Compatibility Impact
Fully compatible. Docs only; no API, option, default, serialization or checkpoint behavior changes, and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
Not applicable: no code path is touched.
1.4 Error Handling and Logging
No blocking issues found. One non-blocking carryover from my last review is still open:
Issue 1: zh heading of section 6.3 diverges from en
- Location:
docs/zh/engines/zeta/rest-api-job-lifecycle.mdsection 6.3 vsdocs/en/engines/zeta/rest-api-job-lifecycle.mdsection 6.3 - Problem: the PR rewords the zh heading to "6.3 About restoring from a specified Savepoint" (translated in the zh page) while the en heading, which comes from dev, still reads "6.3 Restoring from an explicit savepoint path". The body text of both says the same correct thing: the REST API cannot select a specific savepoint path.
- Potential risk: only a cosmetic difference between language versions and a heading anchor that no longer matches across languages.
- Best improvement: change the en heading to the same wording, or revert the zh heading to dev's. A one-line change either way.
- Severity: Low (optional)
- Raised by another reviewer: no
2. Code Quality Assessment
2.1 Coding Standards
Markdown and table structure are consistent across the touched pages. No code is changed, so there are no comment or logging concerns.
2.2 Test Coverage and Test Stability
No test files are changed. Rating: not applicable.
2.3 Documentation Updates
en and zh are updated together for the paired pages, and docs/sidebars.js registers the new zh Aerospike.md page. I did not run a docs site build.
3. Architectural Soundness
3.1 Elegance
Precise fix: each corrected row is traceable to an Option definition, converter or shipped config.
3.2 Maintainability
Keeping the en and zh pages in lockstep keeps later accuracy passes cheap.
3.3 Extensibility
Not applicable.
3.4 Historical-Version Compatibility
No behavior change, so there is no historical-version impact. The origin/2.6-release to dev upgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | zh heading 6.3 differs from en | docs/zh/engines/zeta/rest-api-job-lifecycle.md (6.3) |
Low (optional) |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers (must fix): none.
- Recommended fixes (non-blocking): Issue 1.
Overall assessment: the previous approval is unchanged. The existing APPROVED state from my earlier round remains valid for the content; the new head only brings in dev.
CI and sync status (live, head 45283bbb31): the apache-side Build and Signal pull request update checks are green. GitHub reports mergeStateStatus=BLOCKED only because a review from someone with write access is still required; there is no merge conflict, and the branch is 3 commits behind dev, which does not affect these docs-only changes. This review is by code reading only; nothing was built or run locally.
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for keeping this documentation pass aligned with upstream. I re-read the complete 56-file diff and checked the relevant options, converters, launcher, REST and persistence paths. The earlier seven corrections are retained. Sorry for missing the command/validation/storage-backend gaps in the previous round: Issues 3-6 below are carryover omissions, not new defects introduced by this rebase.
What problem this PR solves
- User pain: Incorrect option types/defaults, startup modes, state layouts and operational commands lead users to configure or diagnose the engine incorrectly.
- Fix approach: Correct connector and Zeta documentation against their existing implementations, including paired language pages and sidebar links.
- One-line summary: Make the documented configuration and operations match the code that users actually reach.
Example: JDBC partition bounds are strings and omitted partition_num becomes ten in JdbcSourceTableConfig, rather than automatically following job parallelism. A Zeta cluster address belongs in hazelcast-client.yaml, not in --master.
1. Code-change review
1.1 Core logic analysis
All 56 files are documentation/sidebar changes, +341/-349; no production source, test or workflow file changes. The complete target-relative diff was read at 45283bbb31ed3d18911e25fc1c8bb67818188fc5, not just the latest commit. Documentation accuracy update with operational-command checks.
Before / after:
Before: JDBC bounds/defaults drift; non-system DataHub table placeholder; stale modes
savepoints shown under a separate root; MapStore shown as per-job files
--master accepts an address; logs shown on the Hazelcast port
After: string bounds/default ten; table_name; actual startup modes
HdfsStorage job namespace; FileMapStore -> append-only region WAL
--master local|cluster; client YAML addresses; HTTP log endpoint
Remaining examples: unsupported jmap command, undeclared SLS option, local du for HDFS
Complete relevant execution chain:
User configuration -> FactoryUtil/ConfigValidationUtils -> connector option rule
-> JDBC table config defaulting -> catalog type converter / split generation
-> DataHub system placeholder replacement -> multi-table writer
Operational paths:
ClientCommandArgs master converter:334 -> local/cluster; client YAML selects addresses
savepoint CLI -> checkpoint coordinator -> HdfsStorage.storeCheckPoint():86-106
-> <namespace>/<jobId>/<checkpoint file>, including savepoint-type checkpoints
FileMapStore -> IMapFileStorage:127-159 -> Hadoop FileSystem configured by URI
-> namespace/cluster/business-map/region -> append updates and tombstones
history expiry removes IMap records; it does not truncate shared region files
log4j2 ST-JID pattern + cluster launcher role log names -> HTTP /log or /logs
Key findings:
- Changed JDBC rows match string Option bounds and DEFAULT_PARTITION_NUMBER=10 in table-config defaulting; query is optional when table selection provides the source.
- DataHub uses the registered table_name placeholder; sink, concrete multi-table writer and replica option form the full contract. SLS batching default 100 exists at runtime, but its factory declaration is missing (Issue 4).
- Prometheus explicitly applies orElse(3) in its sink, even though the shared HTTP Option has no default. The corrected prose is supported by the actual caller.
- DuckDB changed complex/zoned/decimal rows and Snowflake adjusted precision/scale/geospatial rows follow the converters. The unchanged DuckDB unsigned mismatch remains separately tracked by #12508.
- MapStore records share map/region files across jobs; per-job file deletion and automatic space reclamation are not supported by the shown implementation. The backend-specific monitoring caveat remains Issue 5.
Community context: +1 to @hutiefang76's earlier DuckDB coordination point. The current PR leaves the upstream unsigned rows unchanged; #12508 is still open. The inspected current converter still groups unsigned with signed widths, so I am not claiming that this documentation PR fixes that separate source-range problem. The other changed DuckDB corrections can remain focused. No independent maintainer approval/change request was present; my older approval wording is a historical technical conclusion, not current write-level approval.
1.2 Compatibility impact
Fully compatible runtime change set: documentation only. No API, option name/default, task protocol, serialization or checkpoint behavior is modified by this PR. No migration or incompatible-changes entry is needed.
1.3 Performance / side effects
No production CPU, memory, GC, network, lock or concurrency change. The important side effect is operator action from the examples. The new whole-namespace warning correctly requires a stopped cluster and acceptance of all IMap-state loss; no deletion or maintenance action was executed in this review. Issues 3-5 prevent misleading operational/validation instructions.
1.4 Error handling and logging
No exception/log implementation changes. Operational documentation must still distinguish actual filesystem selection and accepted configuration keys.
Issue 3: Replace the unsupported jmap heap-summary command
- Location:
docs/en/engines/zeta/tuning-guide.md:23-25and the matching ZH section. - Description: Changing the prose to jmap leaves
jmap -heap <pid>as the instruction. This is an old-JDK command, not a valid JDK 11/17 jmap option; the supported baseline uses those newer JDKs. Oracle's JDK 17 jmap options do not include -heap, while jcmd documents GC.heap_info. - Risk: The first troubleshooting command fails instead of showing heap usage.
- Best improvement: Use
jcmd <pid> GC.heap_infoin both languages and update/remove the old attaching-debugger output so it matches the chosen tool. State the same-host/user prerequisite where useful. - Severity: Medium, required.
- Previously raised by others: No; acknowledged carryover omission.
Issue 4: The newly listed SLS batching option is rejected by configuration-check tooling
- Location:
docs/en/connectors/sink/Sls.md:44, ZH:43;SlsSinkFactory.java:48. - Description: The runtime writer reads log_group_size with default 100, but the factory optional list declares only SOURCE/TOPIC. ConfigValidationUtils:356 and the CLI validation path call validateUnknownKeys against that rule, so explicitly configuring the advertised option is rejected by check tooling. Normal factory value validation and unknown-key preflight are separate paths; this is not a claim that every ordinary write always fails.
- Risk: A documented configuration fails standard validation/metadata discovery.
- Best improvement: Keep this docs PR accurate by omitting the newly advertised row until the factory contract is fixed, or document the precise current limitation and coordinate a separate scoped factory/test repair. Do not silently claim full declarative support.
- Severity: Medium, required.
- Previously raised by others: No; carryover omission.
Issue 5: Select monitoring commands for the actual MapStore filesystem
- Location: EN
state-storage-and-recovery.md:202,268,313; ZH:189,252,296; example fs.defaultFS is HDFS at EN:169. - Description: The examples configure an external Hadoop filesystem but tell operators to run local
du -sh /tmp/seatunnel/imap. IMapFileStorage:135-159 selects FileSystem from the configured Hadoop URI; the same namespace is therefore an HDFS/S3 path, not necessarily a local directory on the master. - Risk: Operators inspect an unrelated local path or miss growth in the real persistence backend.
- Best improvement: Label local du as file:/// only and add a backend-aware example, such as
hadoop fs -du -s -h <configured-filesystem-URI-and-namespace>with the same filesystem/authentication settings (Hadoop FS shell). Retain the shared-region/no-selective-delete warning. - Severity: Medium, required.
- Previously raised by others: No; carryover omission.
Issue 6: Remove metrics snapshot from the running-job-info map description
- Location: EN
state-storage-and-recovery.md:140and its ZH table. - Description: engine_runningJobInfo stores JobInfo, whose fields are initializationTimestamp and serialized immutable job information (JobInfo.java:33-38). Runtime metrics use their separate state-store path; this map is not the metrics snapshot described in the new row.
- Risk: Minor diagnostic confusion about where observability state is held.
- Best improvement: Describe submitted immutable job information/initialization metadata and keep metrics maps distinct.
- Severity: Low, non-blocking.
- Previously raised by others: No; carryover omission.
Previous Low Issue 1 (ZH 6.3 heading wording differs from EN) and Low Issue 2 (refresh the PR description to the current reduced diff) remain optional; neither is a runtime blocker.
2. Code-quality assessment
2.1 Code conventions
Existing documentation files retain their headers and source-oriented structure. Three new sidebar targets exist in both language trees. No new Java method or field is introduced. The scoped whitespace check produced no entries.
2.2 Test coverage and stability
No UT/E2E code changes; a new-test stability rating is not applicable. No local build, unit/integration test, container or service was run. Static reads covered the complete diff, JdbcSourceOptions/table defaulting, DataHub placeholder/multi-table contracts, SLS runtime/factory/preflight paths, Prometheus sink retry wiring, DuckDB/Snowflake converters, Pulsar/RocketMQ mode definitions, Aerospike KV field handling, CLI parsing, log4j2/REST routes, checkpoint and IMap persistence. The scoped whitespace check is clean. No docs site build or live command against a JVM/storage backend was run.
Exact-head fork Build 40156626169 is completed/success at 45283bb. This is current-head evidence, separate from the older Apache green result. Required check acceptance and effective maintainer approval remain independent of the documentation findings.
2.3 Documentation
The paired changed option/mode/log/storage guidance is mostly consistent. EN-only checkpoint YAML comment correction already matches the ZH form; the added ZH Aerospike example follows the existing EN KV pattern. Issues 3-5 need matching corrections in both languages.
3. Architectural soundness
3.1 Solution quality
A documentation correction pass; runtime architecture remains unchanged.
3.2 Maintainability
Each corrected claim should keep its source definition/caller boundary clear, especially effective defaults that are applied outside the Option declaration.
3.3 Extensibility
No extension API or dependency is introduced.
3.4 Historical compatibility
No binary, checkpoint or job-option migration is introduced; older jobs are unaffected by this documentation diff.
4. Findings summary
| Number | Finding | Location | Severity |
|---|---|---|---|
| 3 | Unsupported modern-JDK heap command | EN/ZH tuning-guide.md:25 | Medium, required |
| 4 | SLS advertised option missing from factory rule | EN Sls.md:44; ZH:43 | Medium, required |
| 5 | Local du used for external filesystem namespace | EN state-storage:202; ZH:189 | Medium, required |
| 6 | Running-job-info row mislabels metrics | EN/ZH state-storage map table | Low |
| 1 | ZH/EN 6.3 heading wording | REST lifecycle docs | Low |
| 2 | PR description reflects an older larger diff | PR description | Low |
5. Merge conclusion
Conclusion: Can merge after fixes
- Blocking items: Issues 3-5: make the heap command, SLS validation claim and filesystem-monitoring examples usable. No production implementation rewrite is requested in this docs PR. Then confirm effective maintainer approval/check gates.
- Non-blocking recommendations: Issues 1, 2 and 6 are small wording/description improvements. Coordinate unchanged DuckDB unsigned rows with #12508 rather than treating that separate source fix as already merged.
The broad accuracy pass contains useful corrections, especially the savepoint and shared-WAL boundaries. The remaining blockers are concrete documentation-use failures with small fixes; the alternative of changing unrelated runtime code here would broaden the scope unnecessarily.
Compare against dev: diverged, ahead 6 / behind 3, merge conflict=False. Drift is recorded independently; it does not itself justify a sync-first comment without an unrelated CI failure.
Daniel has READ permission. This COMMENT is a technical assessment, not an effective write-level approval. A write-capable maintainer must confirm repository gates and supply the effective approval.
Local evidence: exact-head fetch/checkout on seatunnel-review-12459, complete diff and source call-chain reads cited above. No runtime verification was claimed.
# Conflicts: # docs/en/engines/zeta/state-storage-and-recovery.md # docs/zh/engines/zeta/state-storage-and-recovery.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for keeping this large accuracy pass aligned with dev. The head is now 3d24d975f5fed89aea3f4a1920340d0e40c31739, which is again only a merge of dev on top of 45283bbb3; there is no author-side content change since my previous review. I re-read the complete 56-file PR diff at this head (not just the merge) and re-verified every open item against the current dev source, so the findings below are restated at this head, with the tool evidence for each. This is a static review of the docs plus one local command check described in item 1; no PR code was built.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs drifted from the code (option types and defaults, dialect lists, startup modes, storage and recovery guidance), so users following them end up with wrong configuration or wrong troubleshooting steps.
- Fix approach: walk each page against the matching
Optiondefinitions, converters, REST and CLI wiring, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a source-verified documentation accuracy pass (docs and
docs/sidebars.jsonly), with three operational-instruction problems still open.
1. Code Change Review
1.1 Core Logic Analysis
All 56 files are under docs/; nothing under src/** and no workflow file changes. Most corrections hold up against source: Prometheus retry default 3 (PrometheusSink applies orElse(3)), the Snowflake DECIMAL(38, s - (p - 38)) rows, the DuckDB complex and zoned-type rows, the JDBC dialect table, and the shared-WAL description of MapStore persistence. The DuckDB unsigned rows remain at dev wording, so there is no overlap with #12508. The merge also brought in upstream edits to checkpoint-storage.md, hybrid-cluster-deployment.md, state-storage-and-recovery.md and submit-job-to-remote-zeta-cluster.md; I read those overlapping hunks and found no conflict markers or duplicated rows.
Operational documentation is where the remaining risk is, because users copy these commands:
tuning-guide: "check heap" -> user runs `jmap -heap <pid>` on the engine JVM
sls sink doc : user adds `log_group_size` to the sink block
-> seatunnel --check / ConfigValidationUtils.validateSinks (ConfigValidationUtils.java:356)
-> ConfigValidator.validateUnknownKeys(config, SlsSinkFactory.optionRule()) (ConfigValidator.java:88-103)
-> OptionValidationException "unknown option keys" (factory declares only SOURCE/TOPIC as optional, SlsSinkFactory.java:39-50)
state-storage: user monitors MapStore growth with `du -sh /tmp/seatunnel/imap/`
-> but fs.defaultFS in the same page's example is hdfs://..., and IMapFileStorage selects the Hadoop FileSystem from the configured URI
1.2 Compatibility Impact
Fully compatible runtime change set: documentation only. No API, option name or default, protocol, serialization or checkpoint behavior changes, and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
No production code path is touched. The only side effect is operator action driven by the examples; the whole-namespace warning in the state-storage page correctly requires a stopped cluster.
1.4 Error Handling and Logging
Issues (restated at this head; items 1 to 3 are the same ones from my previous review, and I apologize that I did not raise them in the earlier approval rounds):
- Medium (required):
jmap -heap <pid>fails on JDK 11.- Location:
docs/en/engines/zeta/tuning-guide.md:23-25and the matching section indocs/zh/engines/zeta/tuning-guide.md:23-25. - Problem: the command is shown as the first heap check. The sample output (
JVM version is 25.192-b12) comes from JDK 8. I ran it against a live JDK 11 JVM locally:jmap -heap <pid>printsError: -heap option used ... Use jhsdb jmap instead, whilejcmd <pid> GC.heap_infoprints the G1 heap summary. SeaTunnel supports JDK 11, so the first troubleshooting step fails for those users. - Risk: users on JDK 11 cannot follow the guide at its first step.
- Best improvement: use
jcmd <pid> GC.heap_info(works on JDK 8 as well as 11 and later) in both languages, and adjust or label the JDK 8 sample output accordingly. Keep the-dumpand-histo:livecommands, which remain valid. - Raised by another reviewer: no.
- Location:
- Medium (required): the SLS sink doc advertises an option that check tooling rejects.
- Location:
docs/en/connectors/sink/Sls.md:44anddocs/zh/connectors/sink/Sls.md:43;SlsSinkFactory.java:39-50. - Problem:
SlsSinkWriter.java:67readsLOG_GROUP_SIZE(default 100), butSlsSinkFactory.optionRule()does not list it, sovalidateUnknownKeysthrowsOptionValidationExceptionfor a job that setslog_group_sizewhen it goes through the check/validation path. Normal factory validation and the unknown-key preflight are separate paths, so I am not claiming every write fails. - Risk: a documented option fails standard config validation.
- Best improvement: for this docs PR, drop the new
log_group_sizerow (or state that it is currently rejected by config-check tooling) and fix the factory in a separate small PR that adds.optional(SlsSinkOptions.LOG_GROUP_SIZE)and a test. Please do not change the runtime code in this PR. - Raised by another reviewer: no.
- Location:
- Medium (required): monitoring commands do not match the example backend.
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md:204, 273, 318anddocs/zh/engines/zeta/state-storage-and-recovery.md:191, 257, 301; examplefs.defaultFS: hdfs://localhost:9000at EN:171. - Problem: the examples configure an HDFS or object-store backed MapStore but tell operators to run local
du -sh /tmp/seatunnel/imap/.IMapFileStoragebuilds the HadoopFileSystemfrom the configured URI, so the namespace is not necessarily a local directory on the master. - Risk: operators inspect an unrelated local path and miss growth in the real backend.
- Best improvement: label
duas thefile:///case and add a backend-aware example such ashadoop fs -du -s -h <fs-uri>/<namespace>, keeping the "no selective deletion" warning. - Raised by another reviewer: no.
- Location:
- Low:
engine_runningJobInforow mentions a metrics snapshot. Location: ENstate-storage-and-recovery.md:142, ZH:133. Problem: the map storesJobInfo, whose fields areinitializationTimestampand the serialized immutable job information (JobInfo.java), not metrics. Best improvement: describe it as submitted job information and initialization metadata. Raised by another reviewer: no. - Low: en and zh headings of section 6.3 differ. Location: EN
rest-api-job-lifecycle.md:332("Restoring from an explicit savepoint path") vs ZH:321("About restoring from a specified Savepoint"). Best improvement: align the two wordings. Raised by another reviewer: no. - Low: the PR description is stale. It still lists a Databend
generate_sink_sqlbullet thatdevalready fixed. Please refresh it to the current diff. Raised by another reviewer: no.
2. Code Quality Assessment
2.1 Coding Standards
Markdown and table structure are consistent; the new zh Aerospike.md is registered in docs/sidebars.js. No Java is changed.
2.2 Test Coverage and Test Stability
No test files are changed, so a test stability rating does not apply. CI for this exact head: fork Build 40214155241 completed successfully, and the Apache-side Build check is green. This is evidence for the current head only.
2.3 Documentation Updates
en and zh are updated together for the paired pages. Items 1 to 3 need matching fixes in both languages. I did not run a docs site build.
3. Architectural Soundness
- 3.1 Elegance: a precise, traceable correction pass; each fix cites an option, converter or caller.
- 3.2 Maintainability: keeping en and zh in lockstep keeps later accuracy passes cheap.
- 3.3 Extensibility: not applicable.
- 3.4 Historical-Version Compatibility: no behavior change; the
origin/2.6-releasetodevupgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | jmap -heap fails on JDK 11 |
tuning-guide.md:23-25 (en, zh) |
Medium (required) |
| 2 | log_group_size row rejected by config-check tooling |
Sls.md:44 (en), :43 (zh) |
Medium (required) |
| 3 | local du used for an external-filesystem MapStore |
state-storage-and-recovery.md (en, zh) |
Medium (required) |
| 4 | running-job-info row mentions metrics | state-storage-and-recovery.md:142 (en) |
Low |
| 5 | zh and en 6.3 headings differ | rest-api-job-lifecycle.md |
Low |
| 6 | PR description is stale | PR body | Low |
5. Merge Recommendation
CI is green on this head and the branch is level with dev (ahead 7, behind 0). The remaining gate is the three documentation fixes, then a write-capable committer approval.
Conclusion: Ready to merge after fixes
- Blockers (must fix): items 1, 2 and 3. Each is a small docs edit; no runtime change is requested.
- Recommended fixes (non-blocking): items 4, 5 and 6.
Overall assessment: the broad accuracy pass is valuable and mostly right; only the operational commands above can mislead users. My earlier approval wording referred to the content at that time and is not an effective write-level approval.
Better alternative: none; if you prefer, split items 2 and 3 into a follow-up PR and merge the rest, since they are independent.
# Conflicts: # docs/en/connectors/sink/Prometheus.md # docs/en/connectors/source/Pulsar.md # docs/zh/connectors/sink/Prometheus.md # docs/zh/connectors/source/Pulsar.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for keeping this large accuracy pass aligned with dev. The head is now cd93e05cbfcfdcaace4256fcb074beac2aacdb84, which is again only a merge of dev on top of 3d24d975f; there is no author-side content change since my last review. I re-read the complete docs-only diff (52 files: docs/en, docs/zh, docs/sidebars.js) at this head and re-checked the open items against the current dev source. This is a static review; nothing was built or run for this round.
Sorry for missing this in the last review. Strictly speaking nothing is new this round: Issues 1 to 6 below are carryovers from my previous review at 3d24d975f (items 1 to 3 were first raised there, and I apologize that I approved earlier rounds without catching them). They are restated at the new head because none has been addressed yet.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs drifted from the code (option types and defaults, dialect lists, type mappings, startup modes, storage and recovery guidance), so users following them end up with wrong configuration or wrong troubleshooting steps.
- Fix approach: walk each page against the matching
Optiondefinitions, converters, REST and CLI wiring, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a source-verified documentation accuracy pass that is mostly right, with three operational-instruction problems still open.
1. Code Change Review
1.1 Core Logic Analysis
Only files under docs/ change; there is no change under src/**, no workflow file and no pom.xml. Most corrections hold up against source (for example the Prometheus retry default, the JDBC dialect table, the Snowflake and DuckDB type rows, the Datahub ${table_name} placeholder, the Kafka, Pulsar and RocketMQ mode lists). The DuckDB unsigned rows stay at current dev wording, so there is no conflict with #12508, which addresses the concern raised by @hutiefang76; I agree with that comment and it is already resolved in e1ff7a3c3.
The remaining risk is in operational instructions that users copy and paste:
tuning-guide: first heap check -> user runs `jmap -heap <pid>` on the engine JVM (JDK 11 rejects it)
sls sink doc: user adds `log_group_size` to the sink block
-> config check -> ConfigValidator.validateUnknownKeys(config, SlsSinkFactory.optionRule())
-> factory declares only SOURCE/TOPIC as optional -> "unknown option keys"
state-storage: user monitors MapStore growth with `du -sh /tmp/seatunnel/imap/`
-> but the same page's example configures fs.defaultFS: hdfs://..., so the local path is not the real store
1.2 Compatibility Impact
Fully compatible. Documentation only: no API, option name or default, protocol, serialization or checkpoint behavior changes, and no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
No production code path is touched. The only side effect is operator action driven by the examples; the "stop the cluster before wiping the namespace" warning in the state-storage page is correct and should be kept.
1.4 Error Handling and Logging
- Medium:
jmap -heap <pid>does not work on JDK 11.- Location:
docs/en/engines/zeta/tuning-guide.md:25anddocs/zh/engines/zeta/tuning-guide.md(same section, diff lines changingjcmdtojmap). - Problem: the command is presented as the first heap check, and the PR switches the surrounding text from
jcmdtojmap. On JDK 9+jmap -heapis removed and prints an error pointing tojhsdb; the sample output (JVM version is 25.192-b12) is JDK 8. SeaTunnel supports JDK 11. - Potential risk: the first troubleshooting step fails for JDK 11 users.
- Best improvement: use
jcmd <pid> GC.heap_info(works on JDK 8 and later) in both languages and label or adjust the JDK 8 sample output.-dumpand-histo:liveremain valid. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: the new
log_group_sizerow in the SLS sink doc is rejected by config validation.- Location:
docs/en/connectors/sink/Sls.md:44,docs/zh/connectors/sink/Sls.md:43;SlsSinkFactory.java:48declares only.optional(SlsSinkOptions.SOURCE, SlsSinkOptions.TOPIC). - Problem:
SlsSinkWriterreadsLOG_GROUP_SIZE(default 100), but the factoryoptionRule()does not list it, so the unknown-key preflight (ConfigValidator.validateUnknownKeys) raisesOptionValidationExceptionwhen the job goes through the check path. I am not claiming every write fails, only the validation path. - Potential risk: a documented option fails standard config validation.
- Best improvement: in this docs PR drop the new row (or state that it is currently rejected by config-check tooling), and fix the factory in a separate small PR that adds
.optional(SlsSinkOptions.LOG_GROUP_SIZE)plus a test. Please do not change runtime code here. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: monitoring commands do not match the example backend.
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md(the threedu -sh /tmp/seatunnel/imap/snippets) and the matching three indocs/zh/engines/zeta/state-storage-and-recovery.md; the examplefs.defaultFS: hdfs://...is in the same page. - Problem: the examples configure an HDFS or object-store backed MapStore, yet operators are told to inspect a local directory. The Hadoop
FileSystemis chosen from the configured URI, so the namespace is not necessarily local to the master. - Potential risk: operators inspect an unrelated path and miss growth in the real backend.
- Best improvement: label
duas thefile:///case and add a backend-aware example such ashadoop fs -du -s -h <fs-uri>/<namespace>, keeping the no-selective-deletion warning. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Low:
engine_runningJobInforow mentions a metrics snapshot.- Location:
state-storage-and-recovery.mdIMap table, en and zh (the row reads "job id, job name, metrics snapshot"). - Problem: the map stores
JobInfo(initialization timestamp and the serialized immutable job information), not metrics. - Potential risk: misleading expectations about what is persisted.
- Best improvement: describe it as submitted job information and initialization metadata, in both languages.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: en and zh headings of section 6.3 differ.
- Location:
docs/zh/engines/zeta/rest-api-job-lifecycle.md:321(heading changed by this PR) vsdocs/en/engines/zeta/rest-api-job-lifecycle.md:332("Restoring from an explicit savepoint path"). - Problem: the zh heading was changed but the en heading was not, so the pair no longer matches and anchors differ.
- Potential risk: minor navigation and parity drift.
- Best improvement: align the two wordings.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: the PR description is stale.
- Location: PR body.
- Problem: it still lists a Databend
generate_sink_sqlbullet, which no longer exists in the currentdevpage, and does not mention later rounds. - Best improvement: refresh the description to the current diff.
- Severity: Low.
- Raised by another reviewer: no.
2. Code Quality
2.1 Coding Standards
Markdown and table structure are consistent, and the new zh Aerospike.md is registered in docs/sidebars.js. No Java is changed.
2.2 Test Coverage and Test Stability
No tests are changed, so test stability does not apply. CI for this head: the Build check on the PR reports pass. That evidence is for this exact head only and says nothing about the correctness of the commands above. Merge state is reported as BLOCKED, which I read as the pending write-capable committer approval, not a content conflict.
2.3 Documentation (en/zh parity)
en and zh are updated together for the paired pages. Issues 1, 2, 3 and 4 need matching fixes in both languages; Issue 5 is a parity gap in itself. I did not run a docs site build.
3. Architectural Soundness
- 3.1 Precise fix / Temporary workaround / Long-term solution: a precise, traceable correction pass; the SLS option row should become a long-term fix in the factory rather than a doc workaround.
- 3.2 Maintainability: keeping en and zh in lockstep keeps later accuracy passes cheap; the repeated
devmerges make a smaller final diff worth considering. - 3.3 Extensibility: not applicable.
- 3.4 Historical-version compatibility: no behavior change; the
origin/2.6-releasetodevupgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | jmap -heap fails on JDK 11 |
tuning-guide.md (en, zh) |
Medium |
| 2 | log_group_size row rejected by config check |
Sls.md (en, zh) |
Medium |
| 3 | local du used for external-filesystem MapStore |
state-storage-and-recovery.md (en, zh) |
Medium |
| 4 | running-job-info row mentions metrics | state-storage-and-recovery.md (en, zh) |
Low |
| 5 | zh and en 6.3 headings differ | rest-api-job-lifecycle.md |
Low |
| 6 | PR description is stale | PR body | Low |
5. Merge Recommendation
CI is green on this head. The remaining gate is three small documentation fixes, then a committer approval.
Conclusion: Ready to merge after fixes
- Blockers (must fix): Issues 1, 2 and 3. Each is a small docs edit; no runtime change is requested.
- Non-blocking fixes: Issues 4, 5 and 6.
Overall assessment: the broad accuracy pass is valuable and mostly correct; only the operational commands above can mislead users. Thanks again for the careful work.
Alternative: if you prefer, drop or split Issues 2 and 3 into a follow-up PR and merge the rest, since they are independent.
# Conflicts: # docs/en/connectors/sink/DuckDB.md # docs/en/connectors/source/DuckDB.md # docs/zh/connectors/sink/Aerospike.md # docs/zh/connectors/sink/DuckDB.md # docs/zh/connectors/source/DuckDB.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for keeping this large accuracy pass in sync with dev. The head is now b0688bfcd29baaff8afe12d8c73484eb4a6a9daf, which is again only a merge of dev on top of cd93e05cb; the author-side docs content is unchanged since my last review. I re-read the docs-only diff against current dev (47 files: docs/en, docs/zh, docs/sidebars.js) and re-checked each open item against the source at this head. This is a static review; nothing was built or run.
Sorry for missing items 1 to 3 in my earlier approvals. All six items below are carryovers from my previous review at cd93e05cb; none has been addressed yet, so I restate them at the new head.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs drifted from the code (option types and defaults, dialect lists, type mappings, startup modes, storage and recovery guidance), so users following them end up with wrong configuration or wrong troubleshooting steps.
- Fix approach: walk each page against the matching
Optiondefinitions, converters, REST and CLI wiring, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a source-verified documentation accuracy pass that is mostly right, with three operational-instruction problems still open.
Example: a user copies the log_group_size row into an SLS sink block and the config check rejects the job.
1. Code Change Review
1.1 Core Logic Analysis
Only files under docs/ change; there is no change under src/**, no workflow file and no pom.xml. Most corrections hold up against source. The remaining risk is in operational instructions that users copy and paste:
tuning-guide: first heap check -> user runs `jmap -heap <pid>` on the engine JVM (removed in JDK 9+)
sls sink doc: user adds `log_group_size` to the sink block
-> ConfigValidator.validateUnknownKeys(config, SlsSinkFactory.optionRule())
-> SlsSinkFactory.java:48 declares only SOURCE/TOPIC as optional -> unknown option key
state-storage: user monitors MapStore growth with `du -sh /tmp/seatunnel/imap/`
-> the same page's example sets fs.defaultFS: hdfs://..., so the local path is not the real store
1.2 Compatibility Impact
Fully compatible. Documentation only: no API, option name or default, protocol, serialization or checkpoint behavior changes; no incompatible-changes.md entry is needed.
1.3 Performance / Side-Effect Analysis
No production code path is touched. The only side effect is operator action driven by the examples; the "stop the cluster before wiping the namespace" warning in the state-storage page is correct and should be kept.
1.4 Error Handling and Logging
- Medium:
jmap -heap <pid>does not work on JDK 11.- Location:
docs/en/engines/zeta/tuning-guide.md:25and the same section ofdocs/zh/engines/zeta/tuning-guide.md. - Problem: presented as the first heap check; on JDK 9+
jmap -heapis removed and points tojhsdb. The sample output (JVM version is 25.192-b12) is JDK 8. SeaTunnel supports JDK 11. - Risk: the first troubleshooting step fails for JDK 11 users.
- Best improvement: use
jcmd <pid> GC.heap_info(JDK 8 and later) in both languages and label or adjust the JDK 8 sample.jmap -dumpand-histo:liveremain valid. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: the
log_group_sizerow in the SLS sink doc is rejected by config validation.- Location:
docs/en/connectors/sink/Sls.md:44,docs/zh/connectors/sink/Sls.md:43;SlsSinkFactory.java:48declares only.optional(SlsSinkOptions.SOURCE, SlsSinkOptions.TOPIC). - Problem:
SlsSinkWriter.java:67readsLOG_GROUP_SIZE(default 100), but the factoryoptionRule()does not list it, so the unknown-key preflight (ConfigValidator.validateUnknownKeys) raisesOptionValidationExceptionon the check path. I am not claiming every write fails, only the validation path. - Risk: a documented option fails standard config validation.
- Best improvement: drop the new row here (or state it is currently rejected by config-check tooling) and fix the factory in a separate small PR adding
.optional(SlsSinkOptions.LOG_GROUP_SIZE)plus a test. Please do not change runtime code in this docs PR. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: monitoring commands do not match the example backend.
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md:204,273,318anddocs/zh/engines/zeta/state-storage-and-recovery.md:191,257,301(du -sh /tmp/seatunnel/imap/); the examplefs.defaultFS: hdfs://localhost:9000is at en line 171. - Problem: the examples configure an HDFS or object-store backed MapStore, yet operators are told to inspect a local directory.
- Risk: operators inspect an unrelated path and miss growth in the real backend.
- Best improvement: label
duas thefile:///case and add a backend-aware example such ashadoop fs -du -s -h <fs-uri>/<namespace>, keeping the no-selective-deletion warning. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Low:
engine_runningJobInforow mentions a metrics snapshot.- Location:
state-storage-and-recovery.mden line 142, zh line 133. - Problem: the map stores job information and initialization metadata, not metrics.
- Risk: misleading expectations about what is persisted.
- Best improvement: describe it as submitted job information and initialization metadata, in both languages.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: en and zh headings of section 6.3 differ.
- Location:
docs/zh/engines/zeta/rest-api-job-lifecycle.md:321vsdocs/en/engines/zeta/rest-api-job-lifecycle.md:332. - Problem: the zh heading was changed but the en heading was not, so anchors and wording drift.
- Best improvement: align the two.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: the PR description is stale.
- Location: PR body (still lists a Databend
generate_sink_sqlbullet that no longer applies on currentdev). - Best improvement: refresh it to the current diff.
- Severity: Low.
- Raised by another reviewer: no.
- Location: PR body (still lists a Databend
2. Code Quality
2.1 Coding Standards
Markdown and table structure are consistent, and the new zh Aerospike.md is registered in docs/sidebars.js. No Java is changed, so ASF headers and code comments do not apply.
2.2 Test Coverage and Test Stability
No tests are changed; stability rating not applicable. CI: the apache-side Build check reports success and the combined status is pending for this head. That evidence is for this exact head only and does not validate the commands above. The PR is 9 ahead and 2 behind dev (diverged), merge state BLOCKED, which I read as the pending write-capable committer approval and not a content conflict.
2.3 Documentation (en/zh parity)
en and zh are updated together for paired pages. Issues 1 to 4 need matching fixes in both languages; Issue 5 is itself a parity gap. I did not run a docs site build.
3. Architectural Soundness
- 3.1 Precise fix / Temporary workaround / Long-term solution: a precise, traceable correction pass; the SLS option should become a long-term fix in the factory rather than a doc workaround.
- 3.2 Maintainability: keeping en and zh in lockstep keeps later accuracy passes cheap; repeated
devmerges make a smaller final diff worth considering. - 3.3 Extensibility: not applicable.
- 3.4 Historical-version compatibility: no behavior change; the
origin/2.6-releasetodevupgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | jmap -heap fails on JDK 11 |
tuning-guide.md (en, zh) |
Medium |
| 2 | log_group_size row rejected by config check |
Sls.md (en, zh) |
Medium |
| 3 | local du used for external-filesystem MapStore |
state-storage-and-recovery.md (en, zh) |
Medium |
| 4 | running-job-info row mentions metrics | state-storage-and-recovery.md (en, zh) |
Low |
| 5 | zh and en 6.3 headings differ | rest-api-job-lifecycle.md |
Low |
| 6 | PR description is stale | PR body | Low |
5. Merge Recommendation
The existing approvals from earlier rounds were given before items 1 to 3 were identified, so they should not be read as clearing them. The remaining gate is three small documentation fixes, then a committer approval.
Conclusion: Ready to merge after fixes
- Blockers (must fix): Issues 1, 2 and 3. Each is a small docs edit; no runtime change is requested.
- Non-blocking fixes: Issues 4, 5 and 6.
Alternative: if you prefer, drop or split Issues 2 and 3 into a follow-up PR and merge the rest, since they are independent. Thanks again for the careful work.
Resolve Datahub.md (EN/ZH) conflicts: keep the dev-side topic placeholder
description with the full TablePlaceholder set and the invalid-${table}
warning.
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for keeping this large accuracy pass in sync with dev. The head is now 8a6317359e2bdf9b3d9297d37a0d4e53e38f6401, again only a merge of dev on top of b0688bfcd (the head of my last review); the author-side docs content is unchanged. I re-read the docs-only diff (45 files, docs/en, docs/zh, docs/sidebars.js) and re-checked each open item against source at this head. This is a static review; nothing was built or run.
Sorry again for missing items 1 to 3 in my earlier approvals. All six items below are carryovers from my previous review; none has been addressed yet, so I restate them at the new head. I also noticed one detail I should have called out more sharply: Issue 1 is a regression introduced by this PR (the original text used jcmd).
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs drifted from the code (option types and defaults, dialect lists, startup modes, storage and recovery guidance), so users following them get wrong configuration or wrong troubleshooting steps.
- Fix approach: walk each page against the matching
Optiondefinitions, converters and engine wiring, and correct it in bothdocs/enanddocs/zh. - One-sentence summary: a source-verified accuracy pass that is mostly right, with three operational-instruction problems still open.
Example: a user copies the new log_group_size row into an SLS sink block and then runs the config validate command; it rejects the job.
1. Code Change Review
1.1 Core Logic Analysis
Only files under docs/ change; nothing under src/**, no workflow file, no pom.xml. Most corrections hold up (JDBC partition_* types and partition_num default, Kafka/Pulsar/RocketMQ mode lists, dialect lists, server-time-zone). The remaining risk is in operational instructions that users copy and paste:
tuning-guide: first heap check -> user runs `jmap -heap <pid>` on the engine JVM (removed in JDK 9+; base text used jcmd)
sls sink doc: user adds `log_group_size` to the sink block
-> SeaTunnelConfValidateCommand.java:325 -> ConfigValidator.validateUnknownKeys(config, factory.optionRule(), name)
-> SlsSinkFactory.java:44 declares only SOURCE/TOPIC as optional -> OptionValidationException (unknown key)
state-storage: user monitors MapStore growth with `du -sh /tmp/seatunnel/imap/`
-> the same page's example sets fs.defaultFS: hdfs://localhost:9000 (line 171), so the local path is not the real store
1.2 Compatibility Impact
Fully compatible: documentation only, no API, option name or default, protocol, serialization or checkpoint behavior changes; no incompatible-changes.md entry needed.
1.3 Side-Effect Analysis
No production code is touched. The only side effect is operator action driven by the examples. The "stop the cluster before wiping the namespace" warning on the state-storage page is correct and should be kept.
1.4 Error Handling and Logging
- Medium:
jmap -heap <pid>does not work on JDK 11.- Location:
docs/en/engines/zeta/tuning-guide.md:19-22and the same section ofdocs/zh/engines/zeta/tuning-guide.md. - Problem: this PR changes the lead-in from
jcmdtojmapand presentsjmap -heapas the first heap check; on JDK 9+ the option is removed (it points tojhsdb). The sample output (JVM version is 25.192-b12) is JDK 8. SeaTunnel supports JDK 11. - Risk: the first troubleshooting step fails for JDK 11 users.
- Best improvement: use
jcmd <pid> GC.heap_info(works on JDK 8 and later) in both languages, and label or adjust the JDK 8 sample.jmap -dumpand-histo:liveremain valid. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: the
log_group_sizerow in the SLS sink doc is rejected by config validation.- Location:
docs/en/connectors/sink/Sls.md:44,docs/zh/connectors/sink/Sls.md:43;SlsSinkFactory.java:44declares only.optional(SlsSinkOptions.SOURCE, SlsSinkOptions.TOPIC). - Problem:
SlsSinkOptions.LOG_GROUP_SIZEexists (int, default 100), but the factoryoptionRule()does not list it, so the unknown-key check inSeaTunnelConfValidateCommand(andConfigValidationUtils) raisesOptionValidationException. I am not claiming every write fails, only the validation path. - Risk: a documented option fails standard config validation.
- Best improvement: drop the new row here (or state it is currently rejected by config-check tooling) and add
.optional(SlsSinkOptions.LOG_GROUP_SIZE)to the factory in a separate small PR with a test. Please keep runtime code out of this docs PR. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Medium: monitoring commands do not match the example backend.
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md:204,273,318and the zh counterpart (du -sh /tmp/seatunnel/imap/); the examplefs.defaultFS: hdfs://localhost:9000is at en line 171. - Problem: the examples configure an HDFS or object-store backed MapStore, yet operators are told to inspect a local directory.
- Risk: operators inspect an unrelated path and miss growth in the real backend.
- Best improvement: label
duas thefile:///case and add a backend-aware example such ashadoop fs -du -s -h <fs-uri>/<namespace>, keeping the no-selective-deletion warning. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Low:
engine_runningJobInforow mentions a metrics snapshot.- Location:
state-storage-and-recovery.mden line 142, zh line 133. - Problem: the map stores submitted job information and initialization metadata, not metrics (metrics live in
engine_finishedJobMetricsafter completion). - Best improvement: describe it as submitted job information and initialization metadata, in both languages.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: en and zh headings of section 6.3 differ.
- Location:
docs/zh/engines/zeta/rest-api-job-lifecycle.md:321("about restoring from a specified savepoint") vsdocs/en/engines/zeta/rest-api-job-lifecycle.md:332("Restoring from an explicit savepoint path"); the zh heading was changed in this PR, the en one is not in the diff. - Best improvement: align the two headings so anchors and wording match.
- Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: the PR description is stale.
- Location: PR body line 21 still lists a Databend
generate_sink_sqlbullet, and the file count/list no longer matches the current diff after thedevmerges. - Best improvement: refresh it to the current diff.
- Severity: Low.
- Raised by another reviewer: no.
- Location: PR body line 21 still lists a Databend
On the other reviewer's note about DuckDB unsigned mappings (#12508): the author already reverted those four rows, so that concern is closed.
2. Code Quality
2.1 Coding Standards
Markdown and table structure are consistent. No Java is changed, so ASF headers and code comments do not apply.
2.2 Test Coverage and Test Stability
No tests are changed; stability rating not applicable. CI: apache-side Build passes for this head and Signal pull request update passes. The branch is 10 ahead and 0 behind dev; merge state is BLOCKED, which I read as the pending write-capable committer approval, not a content conflict.
2.3 Documentation (en/zh parity)
en and zh are updated together for paired pages. Issues 1 to 4 need matching fixes in both languages; Issue 5 is itself a parity gap. I did not run a docs site build.
3. Architectural Soundness
- 3.1 Precise fix: a precise, traceable correction pass; the SLS option should become a factory fix in a follow-up rather than a doc workaround.
- 3.2 Maintainability: keeping en and zh in lockstep keeps later passes cheap.
- 3.3 Extensibility: not applicable.
- 3.4 Historical-version compatibility: no behavior change; the
2.6-releasetodevupgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | jmap -heap fails on JDK 11 (regression from jcmd) |
tuning-guide.md (en, zh) |
Medium |
| 2 | log_group_size row rejected by config check |
Sls.md (en, zh) |
Medium |
| 3 | local du used for external-filesystem MapStore |
state-storage-and-recovery.md (en, zh) |
Medium |
| 4 | running-job-info row mentions metrics | state-storage-and-recovery.md (en, zh) |
Low |
| 5 | zh and en 6.3 headings differ | rest-api-job-lifecycle.md |
Low |
| 6 | PR description is stale | PR body | Low |
5. Merge Recommendation
The earlier approvals were given before items 1 to 3 were identified, so they should not be read as clearing them.
Conclusion: Ready to merge after fixes
- Blockers (must fix): Issues 1, 2 and 3. Each is a small docs edit; no runtime change is requested.
- Non-blocking fixes: Issues 4, 5 and 6.
Alternative: if you prefer, drop or split Issues 2 and 3 into a follow-up PR and merge the rest, since they are independent. Thanks again for the careful work.
- tuning-guide.md (EN/ZH): use jcmd <pid> GC.heap_info as the first heap check (jmap -heap is removed on JDK 9+) and label the sample output as a JDK 8 reference; jmap -dump/-histo remain valid. - Sls.md (EN/ZH): drop the log_group_size row — the option is not registered by SlsSinkFactory.optionRule() so the config validator rejects it; the factory change belongs in a separate code PR. - state-storage-and-recovery.md (EN/ZH): scope the du command to local file storage and add a backend-aware example for HDFS/object stores; describe engine_runningJobInfo as submitted job info and initialization metadata (metrics live in engine_finishedJobMetrics). - rest-api-job-lifecycle.md (ZH): align the 6.3 heading with the EN one.
|
All six findings are addressed, thanks for restating them at the new head. Commit e080aeb:
|
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for the quick turnaround in e080aebdd2ba59a7312c63b12c2dda539fe57c3f. I re-read the whole docs-only diff at this head (43 files under docs/en, docs/zh and docs/sidebars.js, 11 commits ahead and 0 behind dev) and checked each changed claim against source on dev. Four of my six previous items are fully closed: the SLS log_group_size row is gone, engine_runningJobInfo is described correctly, the zh 6.3 heading now matches en, and the jmap -heap lead-in is replaced. I owe you two apologies. First, the wording "jcmd <pid> GC.heap_info works on JDK 8 and later" came from my own earlier suggestion, and it is wrong: that diagnostic command does not exist on JDK 8, so you were following bad advice from me (Issue 1). Second, the hybrid-mode log file name regression (Issue 2) has been in the diff since the first commit and I missed it in all my earlier rounds, so it is a carryover. Sorry for the extra round. This is a static review; nothing was built or run.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs drifted from the code (option types and defaults, dialect lists, startup modes, CLI flags, storage and recovery guidance). Users who copy them get configs that fail or troubleshooting steps that do not work.
- Fix approach: check each page against the matching
Optiondefinitions, type converters, CLI args and start scripts, and fixdocs/enanddocs/zhtogether. - One-sentence summary: a careful, source-checked accuracy pass that is almost done. Two operational instructions are still wrong.
1. Code Change Review
1.1 Core Logic Analysis
Only docs/** changes. I re-checked these claims at this head and they hold:
- JDBC
partition_lower_bound/partition_upper_boundarestringType()(JdbcSourceOptions.java:141-151), andpartition_numdefaults toDEFAULT_PARTITION_NUMBER = 10(JdbcSourceTableConfig.java:42,98). - The JDBC dialect table matches
DatabaseIdentifier.java:31,47-52(OpenGauss,Presto,DuckDB,Dsql,YashanDB). - Hudi
op_typeisWriteOperationType, defaultINSERT(HudiSinkOptions.java:122-126). - The RocketMQ start modes match
StartMode.java:22-26. - The Snowflake mappings match
SnowflakeTypeConverter.java:p > 38becomesMath.max(0, scale - (precision - 38))at line 229; LTZ/TZ map toOFFSET_DATE_TIME_TYPEat lines 178-180; GEOGRAPHY/GEOMETRY map to STRING at lines 156-157. -m/--masteraccepts onlylocal/cluster(ClientCommandArgs.java:67-71), and-s/--savepoint <jobId>is at line 84.- The IMap names match
Constant.java:44-54. - The sidebar entries point at pages that exist in both languages.
The two remaining errors are in the commands users copy and paste:
tuning-guide step 1: user runs `jcmd <pid> GC.heap_info` on a JDK 8 engine
-> JDK 8 HotSpot has no GC.heap_info diagnostic command (it ships GC.class_histogram,
GC.class_stats, GC.heap_dump, GC.rotate_log, GC.run, GC.run_finalization; GC.heap_info
appears from JDK 9) -> "Unknown diagnostic command"
hybrid deployment: user runs `./bin/seatunnel-cluster.sh -d` (no -r)
-> seatunnel-cluster.sh:45 NODE_ROLE="master_and_worker"
-> seatunnel-cluster.sh:121-122 -Dseatunnel.logs.file_name=seatunnel-engine-server
-> log4j2.properties:83 writes logs/seatunnel-engine-server.log
-> the doc now points to seatunnel-engine-master.log / seatunnel-engine-worker.log, which are
only written with -r master / -r worker (seatunnel-cluster.sh:98-112)
1.2 Compatibility Impact
Fully compatible. This is documentation only: no API, option name, default, protocol, serialization or checkpoint behavior changes, so no incompatible-changes.md entry is needed.
1.3 Side-Effect Analysis
No production code is touched. The only side effect is what operators do after reading the examples. The "stop the cluster before wiping the whole namespace" warning on the state-storage page is right; please keep it.
1.4 Error Handling and Logging
- Medium:
jcmd <pid> GC.heap_infodoes not work on JDK 8.- Location:
docs/en/engines/zeta/tuning-guide.md:23-27anddocs/zh/engines/zeta/tuning-guide.md:23-27. - Problem: both pages say the command "works on JDK 8 and later".
GC.heap_infowas added in JDK 9, and JDK 8 rejects it as an unknown diagnostic command. The sample output below it isjmap -heapoutput from JDK 8, so the command and the sample do not match either. This wording came from my previous review, so the mistake is mine. - Risk: SeaTunnel supports JDK 8, so the first troubleshooting step fails for JDK 8 users.
- Best improvement: split by JDK version in both languages. For example: "On JDK 9+ use
jcmd <pid> GC.heap_info; on JDK 8 usejmap -heap <pid>(removed in JDK 9+)." Keep the sample labeled asjmap -heapoutput from JDK 8. - Severity: Medium (required).
- Raised by another reviewer: no (it corrects my own earlier suggestion).
- Location:
- Medium: wrong log file names for the default hybrid deployment (carryover I missed earlier).
- Location:
docs/en/engines/zeta/hybrid-cluster-deployment.md:497anddocs/zh/engines/zeta/hybrid-cluster-deployment.md:447(regression: the base textseatunnel-engine-server.logwas correct).docs/en/engines/zeta/log-analysis-with-ai.md:58-59anddocs/zh/engines/zeta/log-analysis-with-ai.md:49-50.- The
seatunnel-engine-master.logpaths intuning-guide.md(en lines 172, 193, 211, 310, 376; zh lines 172, 193, 211, 310).
- Problem:
seatunnel-cluster.sh -dwithout-rruns asmaster_and_workerand logs toseatunnel-engine-server.log(seatunnel-cluster.sh:45,121-122). Only separated mode (-r master/-r worker) writes the master/worker files. So the hybrid page now names files that are never created. The log-analysisgrepand the tuning-guidegrepcommands match nothing on a hybrid cluster. The tuning-guide fix from the non-existentseatunnel-server.logis right for separated mode, but it leaves out hybrid mode. - Risk: users of the default deployment grep files that do not exist and conclude there are no logs.
- Best improvement: restore
seatunnel-engine-server.logon the hybrid page (en and zh). In log-analysis and tuning-guide, use a glob such as"$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log, or name both forms:seatunnel-engine-server.log(hybrid) andseatunnel-engine-master.log(separated). Please also update the hybrid bullet in the PR description. - Severity: Medium (required).
- Raised by another reviewer: no.
- Location:
- Low: one MapStore size example still has no backend-aware command (previous Issue 3, partly open).
- Location:
docs/en/engines/zeta/state-storage-and-recovery.md:274. The zh counterpart atdocs/zh/engines/zeta/state-storage-and-recovery.md:258-259already has thehadoop fs -duline. - Problem: lines 204-205 and 319-320 were updated, but the "IMap storage sizing" block still shows only
du -sh /tmp/seatunnel/imap/, while the page's example backend ishdfs://localhost:9000(line 171). - Best improvement: mirror the zh block, i.e. add the local-file note and the
hadoop fs -du -s -h <fs-uri>/<namespace>line. - Severity: Low.
- Raised by another reviewer: no.
- Location:
- Low: zh checkpoint-storage still has a
//comment inside YAML.- Location: the zh page
docs/zh/engines/zeta/checkpoint-storage.md:312(the Kerberos comment line, which starts with//). The en page is fixed in this PR (docs/en/engines/zeta/checkpoint-storage.md:343,346). - Problem:
//is not a YAML comment, so a user who copies the zh example gets an invalid key. The PR description lists this as en-only, but the same defect exists in zh. - Best improvement: change it to
#in zh as well. - Severity: Low.
- Raised by another reviewer: no.
- Location: the zh page
- Low: the PR description still lists changes that are not in the diff (previous Issue 6, partly open).
- Location: PR body.
- Problem: the Databend bullet is gone, but these entries are still there:
- the Sls
log_group_sizebullet, which is now removed from the diff; - a Prometheus bullet that contradicts the reverted wording;
- DataHub, Kafka, Pulsar, PostgreSQL-CDC, DuckDB, security, schema-feature and rest-api-v2 bullets, none of which have files in the current 43-file diff;
- "73 changed files".
- the Sls
- Best improvement: trim the description to the current diff, so whoever merges this does not expect fixes that were dropped during the
devmerges. - Severity: Low.
- Raised by another reviewer: no.
Previous items 2 (SLS row), 4 (engine_runningJobInfo wording) and 5 (6.3 heading parity) are fixed at this head. The DuckDB unsigned-row concern raised by @hutiefang76 (#12508) stays closed, because those rows are no longer in the diff.
2. Code Quality
2.1 Coding Standards
Markdown and table structure are consistent. No Java is changed, so ASF headers and code comments do not apply.
2.2 Test Coverage and Test Stability
No tests change, so a stability rating does not apply. CI: the contributor-fork Build run for this head succeeded, and Signal pull request update passes. The apache-side Build check is the usual pointer and shows pending. Merge state is BLOCKED with REVIEW_REQUIRED and no conflicts; the branch is 0 behind dev.
2.3 Documentation (en/zh parity)
Paired pages are updated together, with two exceptions: Issue 3 (one en block lags zh) and Issue 4 (one zh block lags en). Issues 1 and 2 need the same fix in both languages. I did not run a docs site build.
3. Architectural Soundness
- 3.1 Precise fix: the corrections are precise and traceable to source. Moving the SLS option into a factory follow-up, instead of documenting a rejected key, was the right call.
- 3.2 Maintainability: keeping en and zh in lockstep makes later passes cheap.
- 3.3 Extensibility: not applicable.
- 3.4 Historical-version compatibility: no behavior change. The
2.6-releasetodevupgrade path is not touched.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | jcmd GC.heap_info claimed to work on JDK 8 |
tuning-guide.md (en, zh) |
Medium |
| 2 | hybrid mode logs to seatunnel-engine-server.log, not master/worker |
hybrid-cluster-deployment.md, log-analysis-with-ai.md, tuning-guide.md (en, zh) |
Medium |
| 3 | one en MapStore du block has no backend-aware line |
state-storage-and-recovery.md en:274 |
Low |
| 4 | zh YAML example still uses // |
zh checkpoint-storage.md:312 |
Low |
| 5 | PR description lists changes not in the diff | PR body | Low |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers (must fix): Issues 1 and 2. Both are small text edits and no runtime change is needed.
- Non-blocking fixes: Issues 3, 4 and 5. Including them in the same push would be nice.
CI is not a blocker here. Once Issues 1 and 2 are fixed, I am happy to approve. Thanks again for sticking with this long accuracy pass, and sorry again that two of these come from my own earlier misses.
- tuning-guide.md (EN/ZH): GC.heap_info exists from JDK 9 only, so the heap check now offers jcmd for JDK 9+ and jmap -heap for JDK 8; the log paths use the seatunnel-engine-*.log glob with the role mapping noted (hybrid = -server.log, separated = -master/-worker). - hybrid-cluster-deployment.md (EN/ZH): restore seatunnel-engine-server.log for the default hybrid deployment. - log-analysis-with-ai.md (EN/ZH): job-log grep switched to the glob. - state-storage-and-recovery.md (EN): mirror the zh backend-aware sizing example in the IMap storage sizing block. - checkpoint-storage.md (ZH): // is not a YAML comment; use # as the en page does.
|
Thanks — and no need to apologize, both corrections are fair. Addressed in 3290e4c:
|
Resolve JDBC-family source table conflicts (EN/ZH): keep the dev-side partition-row formatting and OceanBase/Oracle rows verified in apache#12447/apache#12865/apache#13050.
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for turning this round around so quickly in 3290e4c96b, and for the dev merge in 32d4e13306. I re-read the full docs-only diff at head 32d4e1330664c4965cf19ad3c17e61b70c7c66c3 (now 28 files under docs/en, docs/zh and docs/sidebars.js) and re-checked every previous item. Four of my five items are closed. Unfortunately, the new log-analysis command has a shell problem that breaks the copy-paste example, so I need one more small fix. This is a static review; nothing was built or run.
What Problem Does This PR Solve?
- User pain point: connector and Zeta engine docs had drifted from the code. Option types and defaults, start modes, CLI flags, log file names and storage/recovery guidance were all affected.
- Fix approach: check each claim against the matching
Optiondefinitions, type converters, CLI args and start scripts, and fix en and zh together. - One-sentence summary: a source-checked accuracy pass that is ready except for one copy-paste command.
1. Code Change Review
1.1 Previous items at this head
- Issue 1 (
jcmd GC.heap_infoon JDK 8): fixed.tuning-guide.md:23-30(en and zh) now splits the advice by JDK:jcmd <pid> GC.heap_infoon 9+,jmap -heap <pid>on 8. The sample is labeled asjmap -heapoutput. - Issue 2 (hybrid log names): fixed on the hybrid page and the tuning guide.
hybrid-cluster-deployment.md(en:497, zh:447) saysseatunnel-engine-server.logagain. That matchesseatunnel-cluster.shrunning asmaster_and_workerwhen-ris not given. All tuning-guidegrepcommands use theseatunnel-engine-*.logglob. The log-analysis page is not done yet; see Issue 6. - Issue 3 (en MapStore
du): fixed.state-storage-and-recovery.mden:274-275 now has the local-file note and thehadoop fs -du -s -hline, matching zh. - Issue 4 (zh YAML
//): fixed.docs/zh/engines/zeta/checkpoint-storage.md:312now uses#. - Issue 5 (PR description): still open, Low. See Issue 8.
About the dev merge: 16 JDBC-family and RocketMQ source pages dropped out of the diff. That is not a lost fix. Dev (via #12865) now carries the same corrections. I spot-checked partition_lower_bound as String, partition_num defaulting to 10, query being conditionally required in Mysql/Oracle/SqlServer/DB2/Vertica, and the five RocketMQ start.mode values with the CONSUME_FROM_GROUP_OFFSETS default, in both en and zh. All are present at this head.
1.2 Compatibility
Fully compatible. This is documentation only, with no option, default or behavior change.
1.3 Side effects
None in the code. The only risk is that users copy the shell commands, which is what Issue 6 is about.
1.4 Issues
Issue 6: the per-job grep example in log-analysis no longer works (Medium, blocking; introduced in 3290e4c96b).
- Location:
docs/en/engines/zeta/log-analysis-with-ai.md:59-60,docs/zh/engines/zeta/log-analysis-with-ai.md:49-50 - Problem: the comment was inserted in front of the line-continuation backslash:
In a shell,
grep -F "[${JOB_ID}]" "$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log # ... (separated) \ "$SEATUNNEL_HOME/logs/seatunnel-engine-worker.log" > job.log
#starts a comment that runs to the end of the line, so the trailing\is part of the comment and does not continue the line. Here is what happens:- Line 1 runs
grepon its own and prints to the terminal. - Line 2 truncates
job.logand then tries to execute the worker log file as a command, which fails. - The user ends up with an empty
job.log. - Even if the continuation worked, the explicit
-worker.logargument duplicates a file that the glob already matches, so worker lines would be collected twice.
- Line 1 runs
- Risk: the main "collect one job's logs" recipe on this page silently produces an empty file.
- Best improvement: drop the second line and move the comment to its own line, for example:
JOB_ID=<job-id> # seatunnel-engine-server.log (hybrid); seatunnel-engine-master.log / -worker.log (separated) grep -hF "[${JOB_ID}]" "$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log > job.log
-hdrops thefilename:prefix thatgrepadds when it reads several files. Please make the same change in zh. - Raised by another reviewer: no.
Issue 7: English comment in the zh tuning guide (Low, non-blocking).
- Location:
docs/zh/engines/zeta/tuning-guide.md:176 - Problem: the new role-mapping comment,
# seatunnel-engine-server.log on the default hybrid deployment; ..., is in English, while the rest of the zh page is Chinese. - Best improvement: translate it into Chinese, reusing the wording you already wrote for the zh hybrid page at
docs/zh/engines/zeta/hybrid-cluster-deployment.md:447. - Raised by another reviewer: no.
Issue 8: the PR description is garbled and out of date (Low, non-blocking; carryover of previous Issue 5).
- Location: PR body.
- Problem: the "## Status update" block is now repeated after almost every line of the description. The body also still says "Current diff (43 files" and lists the JDBC-family sources and RocketMQ pages, which are no longer in this PR's diff after the dev merge (the diff is now 28 files).
- Best improvement: rewrite the body once. List only the 28 current files and add one line saying the JDBC/RocketMQ source fixes landed on dev through #12865.
- Raised by another reviewer: no.
2. Quality
2.1 Standards
The Markdown and tables are consistent, and en/zh are updated together. No Java is changed.
2.2 Tests
No tests change, so a stability rating does not apply. A docs build was not run locally.
2.3 Docs parity
Parity holds across all paired pages, except the comment language in Issue 7. Issue 6 is identical in en and zh and needs the same fix in both.
3. Architecture
Not applicable beyond precision. Using the role-aware glob instead of a single hard-coded file name is the right long-term choice, because one command now covers hybrid and separated deployments alike.
4. Issue table
| No. | Issue | Location | Severity | Status |
|---|---|---|---|---|
| 1 | jcmd GC.heap_info on JDK 8 |
tuning-guide.md en/zh:23-30 | Medium | Fixed |
| 2 | Hybrid log file name | hybrid-cluster-deployment.md en:497, zh:447; tuning-guide.md | Medium | Fixed |
| 3 | en MapStore du block |
state-storage-and-recovery.md en:274 | Low | Fixed |
| 4 | zh YAML // comment |
zh checkpoint-storage.md:312 | Low | Fixed |
| 6 | Comment swallows the line continuation in the per-job grep |
log-analysis-with-ai.md en:59-60, zh:49-50 | Medium | New, blocking |
| 7 | English comment in the zh page | zh tuning-guide.md:176 | Low | New |
| 8 | Garbled, outdated PR description | PR body | Low | Open (was 5) |
5. Merge recommendation
Conclusion: Ready to merge after fixes
- Blocking: Issue 6 only, a two-line edit in each language.
- Non-blocking: Issues 7 and 8.
CI is green on this head: the fork Build run succeeded and the Apache-side Build and Signal pull request update checks pass. GitHub reports no conflicts; the branch is 2 commits behind dev, which does not require a sync for a docs PR. Once Issue 6 is fixed I am happy to approve. Thanks again for your patience with this long accuracy pass.
- log-analysis-with-ai.md (EN/ZH): the role-mapping comment inserted in front of a line-continuation backslash turned the two-line command into a broken one (empty job.log); collapse to a single grep with -h and move the comment to its own line. - tuning-guide.md (ZH): translate the new role-mapping comment into Chinese to match the rest of the page.
|
Thanks — the broken command was my mistake, and both are fixed in 9f85fe9:
|
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for the fix in 9f85fe9ae2 and for the clear reply. I re-checked the current head 9f85fe9ae2234986cc8a88a6d4887952749e294d; the only commit since my previous review of 32d4e13306 changes three lines in three pages, and it closes all three remaining items (Issues 6, 7 and 8) exactly as you described. No new problem came up, and everything I verified in earlier rounds is unchanged. This is a static docs review; nothing was built or run.
What Problem Does This PR Solve?
Zeta engine and connector docs had drifted from the code (option types and defaults, CLI flags, log file names, storage and recovery guidance). The PR fixes 28 files in docs/en, docs/zh and docs/sidebars.js against the actual Option definitions, converters, CLI args and start scripts.
1. Code Change Review
1.1 Previous items at this head
- Issue 6 (per-job
grepbroken by a comment before the line continuation): fixed.docs/en/engines/zeta/log-analysis-with-ai.md:58-59anddocs/zh/engines/zeta/log-analysis-with-ai.md:49-50now put the role-mapping comment on its own line, followed by a singlegrep -hF "[${JOB_ID}]" "$SEATUNNEL_HOME"/logs/seatunnel-engine-*.log > job.log. The duplicated explicit-worker.logargument is gone, and-hdrops the filename prefix across the glob. The command now works when copied. - Issue 7 (English comment in the zh tuning guide): fixed.
docs/zh/engines/zeta/tuning-guide.md:176is now in Chinese, and no other English-only shell comment remains on that page. - Issue 8 (garbled PR description): fixed. The body is rewritten once: it covers the current 28 files, has a single status-update block, and notes that the JDBC-family and RocketMQ fixes landed on
devthrough #12865. One tiny nit: it says the branch "stays 0 commits behind"dev, while GitHub currently shows 2 behind. This is cosmetic and does not need a new commit. - Issues 1-4 from earlier rounds (JDK-split heap check, hybrid log name, EN MapStore
dublock, ZH YAML comment) are untouched by this commit and remain fixed.
1.2 Compatibility
Fully compatible. This is documentation only, with no option, default or behavior change.
1.3 Side effects
None in the code. The copy-paste shell examples on the touched pages are now correct.
1.4 Issues
No new issues.
2. Quality
2.1 Standards
The Markdown and code blocks are consistent, and EN/ZH are updated together. No Java is changed.
2.2 Tests
No tests change, so a stability rating does not apply.
2.3 Docs parity
Parity holds across all paired pages. The log-analysis command is identical in EN and ZH, and only the comment is translated.
3. Architecture
Not applicable. The role-aware seatunnel-engine-*.log glob remains the right choice, because one command covers both hybrid and separated deployments.
4. Issue table
| No. | Issue | Location | Severity | Status |
|---|---|---|---|---|
| 1-4 | Earlier-round items | tuning-guide, hybrid-cluster-deployment, state-storage-and-recovery, checkpoint-storage | Medium/Low | Fixed (unchanged) |
| 6 | Comment swallowed the line continuation in the per-job grep |
log-analysis-with-ai.md EN:58-59, ZH:49-50 | Medium | Fixed |
| 7 | English comment in the zh page | zh tuning-guide.md:176 | Low | Fixed |
| 8 | Garbled, outdated PR description | PR body | Low | Fixed |
5. Merge recommendation
Conclusion: Ready to merge
- Blocking (non-CI): none.
- Non-blocking: none beyond the cosmetic "0 commits behind" wording in the PR body.
CI is green on this head: the fork Build run succeeded and the Apache-side Build and Signal pull request update checks pass. GitHub reports no conflicts; the branch is 2 commits behind dev, which does not require a sync for a docs PR. Final merge still needs a committer review. Thank you for your patience through this long accuracy pass.
…a3b1 # Conflicts: # docs/en/connectors/sink/Jdbc.md # docs/zh/connectors/sink/Jdbc.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thank you @zhangshenghang for keeping this documentation accuracy pass in sync with dev. The head moved from 9f85fe9ae2 (which I approved) to d0a6ca222ee849f2b6beab92b02fe2135468749c, a merge of the latest dev. I compared the PR's own delta against its merge base at both heads, file by file, so the dev commits brought in by the merge are not mixed into this review. This is a static docs review; nothing was built or run.
What Problem Does This PR Solve?
Zeta engine and connector docs had drifted from the code (option types and defaults, CLI flags, dialect lists, storage and recovery guidance), so users following them could configure or diagnose jobs incorrectly. The PR aligns those pages with the source, in both docs/en and docs/zh.
1 Code Change Review
1.1 What changed since my last approval
The PR still touches the same 28 files. For 26 of them the PR's own added/removed lines are byte-identical to the version I approved. The only difference is a conflict resolution in the JDBC sink dialect list:
docs/en/connectors/sink/Jdbc.md:298-299docs/zh/connectors/sink/Jdbc.md:297-298
dev added CockroachDB to the list in #12828, and this PR adds OpenGauss, Presto, Dsql and DuckDB. The merge keeps both:
| OpenGauss | Presto | Dsql |
| DuckDB | YashanDB | CockroachDB |
I checked this against the dialect factories on the head: OpenGaussDialectFactory, PrestoDialectFactory, DsqlDialectFactory, DuckDBDialectFactory, YashanDbDialectFactory and CockroachDBDialectFactory all exist under connector-jdbc/.../dialect. So the list neither drops the new CockroachDB entry from dev nor any dialect this PR added. en and zh match.
docs/zh/connectors/sink/Hudi.md also changed on dev (#13121) after my approval. The PR's own Hudi hunk is unchanged and still applies cleanly on top of it.
1.2 Compatibility
Docs only. No code, config option, default, or serialization change.
1.3 Side effects
None. No dev content was reverted by the merge.
1.4 Error handling / logging
Not applicable.
2 Quality
2.1 Standards
The table rows render correctly as Markdown. The column padding in the last two rows is a little uneven, but that is cosmetic and not worth another round.
2.2 Tests and stability
No tests are needed for a docs change. Stability: Stable.
2.3 Docs
en/zh parity holds for the resolved dialect table and for the rest of the diff, as in my last approval.
3 Architecture
No change.
4 Issue table
| # | Location | Problem | Severity |
|---|---|---|---|
| - | - | No open issues. All previous items stay closed at this head. | - |
5 Merge recommendation
Ready to merge.
- Blockers: none.
- CI:
Buildpassed on this head (fork run https://github.com/zhangshenghang/seatunnel/actions/runs/42305990386). Mergeable, 0 commits behinddev.
My approval stands. Thanks again for the patient follow-through on this large pass.
davidzollo
left a comment
There was a problem hiding this comment.
+1
LGTM
Thanks for your contribution!
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
Purpose of this PR
This PR fixes a batch of real documentation defects found by auditing the docs against the Java source code on
dev. Current diff: 28 files (docs/en,docs/zh,docs/sidebars.js). All fixes are backed by code evidence; no cosmetic-only or reformat-only changes are included. The JDBC-family and RocketMQ source fixes from earlier revisions have landed ondevthrough #12865, so those pages were dropped from this diff.Issues found and changes made
Zeta engine docs
seatunnel.sh --savepoint <jobId>, real IMap names fromConstant.java, real MapStore persistence config (FileMapStoreFactory);engine_runningJobInfodescribed as submitted job info + initialization metadata (metrics live inengine_finishedJobMetrics);ducommands scoped to local file storage with a backend-awarehadoop fs -duexample.jcmd <pid> GC.heap_info; JDK 8:jmap -heap <pid>), IMap latency section corrected (no WAL compaction knob;IMapFileStoragewrites under the configured namespace), log paths switched to theseatunnel-engine-*.logglob with the role mapping noted.seatunnel-engine-server.logfor the default hybrid deployment.-hto suppress filename prefixes, no duplicated explicit worker-log argument).//comment inside the YAML example fixed to#(matching the en page).Connector docs
Other
ServerConfigOptionsand the real doc structure.Status update
devrepeatedly and stays 0 commits behind it; per-table details that dev already documents authoritatively follow the dev-side wording after conflict resolution.log_group_sizerow removed pending a factory-side fix; heap check split by JDK version; role-aware log file-name glob; zh YAML comment fix; heading parity; backend-aware MapStore size examples;engine_runningJobInfodescription; working per-job log collection command.