You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "zhangshenghang (via GitHub)" <gi...@apache.org> on 2026/09/23 16:30:59 UTC

[PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

zhangshenghang opened a new pull request, #12459:
URL: https://github.com/apache/seatunnel/pull/12459

   ## 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`. It covers connector option tables, connector type-mapping tables, Zeta engine guides, REST API docs, getting-started content and the docs sidebar navigation. All fixes are backed by code evidence; no cosmetic-only or reformat-only changes are included.
   
   ## Issues found and changes made
   
   ### Connector option tables vs code
   
   - **DataHub sink (en+zh)**: docs told users to use a `${table}` placeholder in `topic` and described `${table_name}` as a deprecated alias — inverted and wrong. The engine only replaces `${table_name}` (`TablePlaceholder` has no `table` key), so `${table}` would be written literally. Fixed all occurrences (descriptions, examples, FAQ).
   - **Kafka source (en+zh)**: `format` row omitted `compatible_kafka_connect_json`, although the same page's `value_converter_schema_enabled` row only makes sense with it (`MessageFormat.COMPATIBLE_KAFKA_CONNECT_JSON`).
   - **Kafka sink (en+zh)**: FAQ format list omitted `maxwell_json` and `compatible_debezium_json`, both supported by `DefaultSeaTunnelRowSerializer` and already listed in the same page's `format` row.
   - **Pulsar source (en+zh)**: FAQ claimed only `EARLIEST`/`LATEST` startup modes; the code (`StartMode` enum) and the page's own table support `EARLIEST`, `LATEST`, `SUBSCRIPTION`, `TIMESTAMP`.
   - **RocketMQ source (en+zh)**: FAQ listed only 3 of the 5 `start.mode` values and omitted the default `CONSUME_FROM_GROUP_OFFSETS`.
   - **JDBC-family sources** (Mysql, Oracle, OceanBase, Vertica, HiveJdbc, SqlServer, en+zh): `partition_lower_bound`/`partition_upper_bound` documented as `BigDecimal` (SqlServer: `Long`); the options are `stringType()` in `JdbcSourceOptions`. `partition_num` documented default "job parallelism" on pages whose siblings say `10`; runtime default is `DEFAULT_PARTITION_NUMBER = 10` (`JdbcSourceTableConfig`).
   - **PostgreSQL-CDC (en+zh)**: `server-time-zone` default shown as `UTC`; the code default is `ZoneId.systemDefault()` (the row's own description already said so).
   - **DB2 source (en+zh)**: `query` marked unconditionally required, but `table_path`/`table_list` reads are supported (generic `JdbcSourceFactory` option rule + registered DB2 catalog).
   - **Jdbc source & sink (en+zh)**: dialect lists missing registered dialects `OpenGauss`, `Presto`, `Dsql`, `DuckDB` (`DatabaseIdentifier` + dialect factories); missing entries actively mislead because unsupported dialects fall back to `GenericDialect`.
   - **Sls sink (en+zh)**: `log_group_size` option (int, default 100, `SlsSinkOptions.LOG_GROUP_SIZE`) missing from the option table.
   - **Prometheus sink (en+zh)**: `retry` documented default `3`; the HTTP `retry` option has no default and the writer performs a single attempt when unset.
   - **Hudi sink (en+zh)**: `op_type` section used lowercase values that fail enum parsing; corrected to `INSERT`/`UPSERT`/`BULK_INSERT` (consistent with the same page's table).
   - **Databend sink (en+zh)**: `database` row referenced a non-existent `generate_sink_sql` option (grep in connector-databend returns nothing).
   - **DuckDB source & sink, Snowflake source & sink, SqlServer sink (en+zh)**: data-type mapping tables corrected against `DuckDBTypeConverter`, `SnowflakeTypeConverter` and `SqlServerTypeConverter` (e.g. DuckDB `UTINYINT→TINYINT`, `UBIGINT→BIGINT`, `TIMESTAMP WITH TIME ZONE→TIMESTAMP_TZ`, `ARRAY/STRUCT/MAP→STRING` on read and unsupported on write; Snowflake `GEOGRAPHY/GEOMETRY→STRING` unconditionally, `TIMESTAMP_LTZ/TZ→TIMESTAMP_TZ`; SqlServer `DATETIMEOFFSET→OFFSET_DATE_TIME`, rowversion `TIMESTAMP→BYTES`), and `query` no longer marked unconditionally required on DuckDB/Snowflake source pages.
   
   ### Zeta engine / general docs
   
   - **state-storage-and-recovery (en+zh)**: this page documented configuration that does not exist (`checkpoint.max-concurrent`, `checkpoint.tolerable-failure`, `hazelcast.fs.base-dir`, `hazelcast.fs.write-behind-delay-seconds`, `hazelcast.fs.compaction-threshold`, a `wal/` directory layout, IMap names `running-job-state`/`running-job-metrics`/`running-pipeline-state`, a `<namespace>/savepoint/` layout) and invalid CLI (`--stop-job ... --savepoint`, `-r <jobId> --savepoint`). Rewritten against the real mechanism: real checkpoint keys (`interval`/`timeout`/`storage`/`retain-after-job-cancelled`), savepoint via `seatunnel.sh --savepoint <jobId>`, real IMap names (`engine_runningJobInfo`, `engine_runningJobState`, `engine_finishedJobState`, `engine_finishedJobMetrics`, ... from `Constant.java`), and the real MapStore persistence config from `FileMapStoreFactory` (cross-linked to `separated-cluster-deployment.md`). The non-existent WAL section is replaced by a MapStore file maintenance 
 section.
   - **rest-api-job-lifecycle (en+zh)**: `CANCELLED` → `CANCELED` (`JobStatus` enum); removed the fabricated `savepointPath` field from `/job-info` responses; replaced the invented `restore.mode`/`savepoint.path` env keys (section 6.3) with the real restore behavior (`restoreMode`/`restoreSourceJobId`).
   - **security (en+zh)**: `enable-http` code default is `false`, doc said `true` (`ServerConfigOptions.ENABLE_HTTP`).
   - **log-analysis-with-ai (en+zh)** and **rest-api-v2 (en+zh)**: `/log` is a Jetty v2 endpoint on the HTTP port (8080), not on the Hazelcast port 5801 (`JettyService` + `RestConstant`); also fixed a broken in-page anchor and the non-existent `seatunnel-engine-server.log` file name.
   - **hybrid-cluster-deployment (en+zh)**: real log files are `logs/seatunnel-engine-master.log` / `seatunnel-engine-worker.log` (`seatunnel-cluster.sh` sets `-Dseatunnel.logs.file_name`), not `seatunnel-engine-server.log`.
   - **tuning-guide (en+zh)**: text said `jcmd` while showing `jmap`; replaced non-existent `logs/seatunnel-server.log` with `logs/seatunnel-engine-master.log`.
   - **logging (en+zh)**: `seatunnel.yml` → `seatunnel.yaml` (shipped file name).
   - **checkpoint-storage (en)**: invalid `//` comments inside a YAML example → `#`.
   - **resource-isolation (en+zh)**: invalid code fence language `hacon` → `hocon`.
   - **getting-started/submit-job-to-remote-zeta-cluster (en+zh)**: `--master seatunnel://host:5801` does not run — `-m/--master` only accepts `local`/`cluster` (`ClientCommandArgs.MasterType`); example rewritten to `-m cluster` with the cluster address in `config/hazelcast-client.yaml`. Removed the wrong "8090 Web UI" port row (Web UI is served on the Jetty HTTP port 8080).
   - **introduction/concepts/schema-feature (en+zh)**: primaryKey field key is `columnNames` (`PrimaryKeyOptions`), not `columns`; fixed a `{a = int, c = string}` example typo.
   - **docs/sidebars.js**: registered existing but unreachable pages: recipe `getting-started/recipes/jdbc-to-jdbc` and Zeta pages `engines/zeta/stain-trace` + `engines/zeta/stain-trace-quickstart`.
   
   ## Languages
   
   English and Chinese docs were audited and fixed together; every fix above was applied to both languages where both exist (a few items are en-only or zh-only because the defect only exists there, e.g. the `//` YAML comments, the missing zh Aerospike example, the broken en anchor).
   
   ## Duplicate check
   
   Before opening this PR I checked all PRs opened in the last 7 days (and all still-open docs PRs): #12452 (RDS links in MySQL-CDC/TiDB-CDC), #12447 (merged; connector option rows), #12423, #12409, #12378, #12347 (earlier doc batches by the same author), #12427 (Postgres/Kingbase sharding), #12359 (PostgreSQL CDC audit). None of the issues fixed here were covered by them. Two files have a partial overlap by file path only, with disjoint content: `docs/zh/engines/zeta/rest-api-v2.md` and `docs/en/engines/zeta/hybrid-cluster-deployment.md` are also touched by #12423, but in unrelated sections (checkpoint field tables / feature checklists); the log-endpoint and log-file-name fixes here do not touch those hunks. The `docs/en|zh/connector-v2/source/*` pages left in the wrong directory are intentionally **not** moved here because #12378/#12409 already cover that relocation.
   
   ## Verification
   
   - Relative-link check across all 73 changed files: 0 broken links; the one in-page anchor touched (`rest-api-v2.md#get-log-content-from-a-single-node`) resolves to a real heading.
   - Markdown table structural check (pipe-count consistency per table block) on all changed files: 0 inconsistencies.
   - `docs/sidebars.js` loads without errors (`node -e "require('./docs/sidebars.js')"`).
   - Every option/default/type/enum claim was verified against the connector/engine source on this branch before editing (option classes, factories, type converters, `ClientCommandArgs`, `ServerConfigOptions`, `JettyService`/`RestConstant`, `seatunnel-cluster.sh`, `log4j2.properties`).
   - No Java code is changed, so no build/test run is required; `./mvnw verify` was not run for this docs-only change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459#issuecomment-5920027257

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "zhangshenghang (via GitHub)" <gi...@apache.org>.
zhangshenghang commented on PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459#issuecomment-6330992493

   All seven review points are addressed in e1ff7a3c3:
   
   1. **Prometheus `retry`** (en+zh): default restored to `3` with 'When unset, defaults to 3 retries'; `0` disables retries.
   2. **DuckDB unsigned rows** (en+zh): the four rows are reverted to the current dev wording, so this PR no longer conflicts with #12508; the other DuckDB corrections are kept.
   3. **JDBC sink dialect table** (en+zh): the stray `DSQL` cell is removed; the table now ends `DuckDB | YashanDB` as on the source page.
   4. **state-storage-and-recovery** (en+zh): the MapStore persistence is now described as an append-only write-ahead log (FileMapStore → IMapFileStorage, shared region files); the 'delete files of expired jobs' advice is replaced with volume sizing plus a full-namespace wipe with the cluster stopped, in the maintenance section, the troubleshooting fix and the cleanup checklist.
   5. **zh Snowflake geospatial sentence**: aligned with the en page (mapped to `STRING`).
   6. **Snowflake `p > 38`**: the sink rows now document `DECIMAL(38, s - (p - 38))` (minimum scale 0) and the unimplementable source row is dropped.
   7. **Capacity formula**: the `max_concurrent_checkpoints` factor is removed with a note that only one checkpoint is in flight.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "zhangshenghang (via GitHub) via commits" <co...@seatunnel.apache.org>.
zhangshenghang commented on PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459#issuecomment-6593283123

   All six findings are addressed, thanks for restating them at the new head. Commit e080aebdd:
   - Issue 1: the first heap check now uses `jcmd <pid> GC.heap_info` (works on JDK 8+; `jmap -heap` removal on JDK 9+ is called out) and the sample output is labeled as a JDK 8 reference. `jmap -dump`/`-histo:live` kept as valid.
   - Issue 2: the `log_group_size` row is removed from the SLS sink tables (EN/ZH) so the docs no longer teach a config that the validator rejects; registering it in `SlsSinkFactory` is left for a separate code PR.
   - Issue 3: the `du` commands are scoped to local file storage (`fs.defaultFS` starting with `file:///`) and a backend-aware example (`hadoop fs -du -s -h <fs-uri>/<namespace>`) was added next to each, keeping the no-selective-deletion warning.
   - Issue 4: `engine_runningJobInfo` is now described as submitted job information and initialization metadata, pointing metrics at `engine_finishedJobMetrics` (EN/ZH).
   - Issue 5: the ZH 6.3 heading is aligned with EN ("从显式 Savepoint 路径恢复").
   - Issue 6: the PR description is refreshed — the stale Databend bullet is removed and a status-update section documents the dev merges and this round of fixes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "zhangshenghang (via GitHub) via commits" <co...@seatunnel.apache.org>.
zhangshenghang commented on PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459#issuecomment-6594215303

   Thanks — and no need to apologize, both corrections are fair. Addressed in 3290e4c96:
   - Issue 1: the heap check is now split by JDK version — JDK 9+ uses `jcmd <pid> GC.heap_info`, JDK 8 uses `jmap -heap <pid>` (removed in JDK 9+) — and the sample stays labeled as `jmap -heap` output from JDK 8 (EN/ZH).
   - Issue 2: the hybrid page restores `seatunnel-engine-server.log` for the default master-and-worker deployment (EN/ZH); the tuning-guide and log-analysis greps now use the `seatunnel-engine-*.log` glob with a comment mapping the roles to `-server.log` vs `-master.log`/`-worker.log` (EN/ZH, including the PR-description hybrid bullet).
   - Issue 3: the EN IMap storage sizing block now mirrors the ZH one (local-file note + `hadoop fs -du -s -h` line).
   - Issue 4: the ZH checkpoint-storage YAML comment `//` is fixed to `#`.
   - Issue 5: the PR description is rewritten to match the current 43-file diff only.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo merged PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Docs] Fix documentation inaccuracies verified against source code [seatunnel]

Posted by "zhangshenghang (via GitHub) via commits" <co...@seatunnel.apache.org>.
zhangshenghang commented on PR #12459:
URL: https://github.com/apache/seatunnel/pull/12459#issuecomment-6608166822

   Thanks — the broken command was my mistake, and both are fixed in 9f85fe9ae:
   - Issue 6: the per-job collection is now a single working command — the role-mapping comment moved to its own line, `-h` suppresses filename prefixes across the glob, and the duplicated explicit worker-log argument is gone (EN/ZH).
   - Issue 7: the tuning-guide role-mapping comment is now in Chinese (ZH).
   - Issue 8: the PR description is rewritten once against the current 28-file diff; the stale JDBC/RocketMQ/SLS/Prometheus bullets and the duplicated Status-update blocks are gone, with a note that the JDBC-family fixes landed on dev via #12865.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org