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

   Yes, I am contributing to Apache SeaTunnel.
   
   ## What documentation issues were found
   
   While auditing connector/transform docs against the Java source code (option 
definitions, factory `optionRule()`s, and reader/writer implementations), I 
found the following real inaccuracies:
   
   1. **Stale option key names in JDBC family docs** — the prose and example 
rows in `Jdbc.md`, `Mysql.md`, `PostgreSQL.md`, `Oracle.md`, `SqlServer.md`, 
`Kingbase.md` referenced 
`chunk-key.even-distribution.factor.upper-bound/lower-bound`, but the JDBC 
source defines these options as `split.even-distribution.factor.*` 
(`JdbcSourceOptions.java:57,68`). The CDC connectors genuinely use 
`chunk-key.*` (cdc-base `JdbcSourceOptions`), so only the non-CDC JDBC docs 
were corrected.
   2. **JDBC `connect_timeout_ms`/`socket_timeout_ms` documented as general 
timeouts** — code only applies them in the Hive dialect provider 
(`HiveJdbcConnectionProvider`); other dialects ignore them. Docs now say so, 
and `0` is described accurately (driver default, not "no timeout").
   3. **Undocumented JDBC options added** — `multi_table.failure_policy` 
(source, default `FAIL_FAST`, `MultiTableCommonOptions.java`) and 
`multi_table_sink_replica` (sink, default `1`, 
`SinkConnectorCommonOptions.java`), plus the legacy `base-url` fallback key for 
`url`.
   4. **Embedding transform docs** — `process_batch_size` (default 100, alias 
`inference_batch_size`) and the multi-table options (`table_transform`, 
`table_match_regex`, `rule_match_mode`) were missing entirely; `custom_config`, 
`oauth_path`, `dimension`, `aws_region` are conditionally required per 
`EmbeddingTransformFactory.optionRule()` but were documented as plain "no"; the 
`custom_config` example had an unclosed string quote (`"Bearer xxxxxxx` → 
config would not parse).
   5. **MQTT sink** — doc claimed retry uses "exponential backoff", but 
`MqttSinkWriter` sleeps a fixed 200 ms (`RETRY_BACKOFF_MS = 200L`).
   6. **RabbitMQ source** — `delivery_timeout` is parsed but never read by the 
connector (`getDeliveryTimeout()` has no callers); docs now disclose this. Sink 
`rabbitmq.config` default corrected to `{}` (code default is an empty map, not 
unset).
   7. **InfluxDB** — sink `write_timeout` is dead (never applied to the OkHttp 
client); docs disclose this. Source `epoch` examples `H`/`MS` are wrong: the 
source passes the value raw to the InfluxDB HTTP API which only accepts 
lowercase (`h,m,s,ms,u,n`).
   8. **TiDB CDC** — docs claimed "exactly-once streaming" and `[x] 
exactly-once`, but nothing in `connector-cdc-tidb` implements exactly-once (no 
option, plain `SourceReader`); `driver` is consumed via `TiDBCatalogFactory` 
and used in the doc's own examples but was missing from the option table.
   9. **Oracle CDC** — `database-names` marked optional, but 
`OracleSourceConfigFactory.create()` calls `checkNotNull(databaseList.get(0))` 
so the job fails without it → now documented as required; `table-pattern` is 
not applied to the Debezium capture list (only `table-names` is) → clarified; 
`server-time-zone` default corrected to "JVM system time zone" 
(`JdbcSourceOptions` default `ZoneId.systemDefault()`).
   10. **DB2 CDC** — same `server-time-zone` default fix, same `table-pattern` 
clarification, and added the missing `split.allow-sampling` row (honored via 
the shared `JdbcSourceConfigFactory`).
   11. **StarRocks sink** — documented that the default load format is JSON via 
`starrocks.config.format` (`StreamLoadFormat.JSON`) and that 
`label_state_timeout_ms` must be > 0 (`Conditions.greaterThan(..., 0L)`).
   12. **zh sink `Jdbc.md`** — heading `#### 示例可选` was a mistranslation of en's 
`#### dialect list` → `#### 方言列表`.
   
   ## What was changed
   
   - Fixed stale/wrong option keys, defaults, and required flags in option 
tables and prose
   - Added missing option rows (`multi_table.failure_policy`, 
`multi_table_sink_replica`, `driver`, `split.allow-sampling`, 
`process_batch_size`, multi-table options)
   - Added honest disclosures for parsed-but-unused options 
(`delivery_timeout`, `write_timeout`)
   - Fixed claims contradicted by code (exponential backoff, exactly-once, 
epoch casing)
   - Fixed a broken HOCON example (unclosed quote)
   - All fixes applied to both English and Chinese docs where the text exists 
in both
   
   ## Areas/files updated
   
   31 files (en + zh): connectors `Jdbc` (source/sink), `Mysql`, `PostgreSQL`, 
`Oracle`, `SqlServer`, `Kingbase`, `Oracle-CDC`, `DB2-CDC`, `TiDB-CDC`, 
`StarRocks` (sink), `Rabbitmq` (source/sink), `Mqtt` (sink), `InfluxDB` 
(source/sink); transform `embedding`.
   
   ## English and Chinese docs
   
   Yes, both were checked and fixed in lockstep; every en fix has its zh 
counterpart except where zh text differs structurally (e.g., the MQTT backoff 
claim only existed in en).
   
   ## Duplicate PR check (last 7 days)
   
   I listed all PRs authored in the last 7 days and diffed their file lists 
against this branch's changed files:
   - #13401/#13390/#13380/#13327/#13302/#13289 (my recent docs PRs) cover 
different files; none touch this PR's files except #13302 touching 
`Mysql.md`/`PostgreSQL.md`/`Kingbase.md` — I verified its hunks add 
`numeric_special_value_as_null` rows and do not fix the `chunk-key.*` stale 
names, so there is no duplicated content (only benign same-file proximity).
   - **Open PR #13274 (created 2026-11-13, outside the 7-day window)** already 
fixes the Doris sink examples (`doris.config`), the StarRocks CDC example 
`base-url`, and the embedding `api_key` wording. To avoid duplicating it, I 
**excluded** those three fixes from this PR (verified via `gh pr diff 13274`).
   - Open PR #13379 (DataValidator docs) and the feature/fix PRs do not overlap.
   
   ## Verification
   
   - Ran a markdown table-consistency checker over all 31 changed files: all 
tables render with consistent columns (the one flag on `Mqtt.md` is a 
pre-existing escaped-pipe `\|` false positive present on upstream/dev).
   - Re-ran the broken-relative-link scan across `docs/en` + `docs/zh`: no new 
broken links introduced.
   - Cross-checked every changed claim against the source files named above 
(option keys/defaults quoted from code before editing).
   - Not run: `./mvnw spotless:apply` / `./mvnw verify` — this PR contains no 
Java/config changes (docs-only), and Spotless does not process Markdown; the 
documentation checks above cover the changed files.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to