Skip to content

[Docs] Fix JDBC dialect, Kafka, file connector and Zeta doc inaccuracies verified against source code - #13149

Merged
davidzollo merged 10 commits into
apache:devfrom
zhangshenghang:docs-fix-20261105
Nov 17, 2026
Merged

davidzollo merged 10 commits into
apache:devfrom
zhangshenghang:docs-fix-20261105

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Yes, I am contributing to Apache SeaTunnel.

What documentation issues were found

All issues below were verified against the actual source code on the current dev branch before editing. Three areas audited (messaging connectors, transforms, NoSQL connectors - 40+ pages) were confirmed clean and are intentionally untouched.

JDBC connector (source + sink, en + zh):

  1. The dialect option told users to set dialect = starrocks, but "StarRocks" is not a dialect name - it is a compatible_mode value. Setting it leaves no matching dialect factory and job initialization fails (JdbcDialectLoader throws instead of falling back). Same for "Inceptor" (selected via compatible_mode on the HIVE dialect).
  2. The dialect list tables listed StarRocks and Inceptor as dialect names; replaced with real dialect names verified from dialectFactoryName() (OpenGauss, Presto, DuckDB).
  3. The claim "unsupported dialect falls back to GenericDialect" is only true when dialect is unset (URL path); an explicit unmatched value fails. Clarified both languages.
  4. use_select_count / skip_analyze were documented as Oracle-only, but the YashanDB dialect honors them too (YashanDbDialect).
  5. split.string_split_mode and split.string-strategy are enum options in code (enumType(...)), not plain strings.

Kafka connector:
6. Sink intro claimed "by default we use 2pc for exactly-once", contradicting the option table itself: semantics defaults to NON (en + zh).
7. Both protobuf source examples lacked the required schema block. Without it, format = protobuf is silently ignored and falls back to the text deserializer (KafkaSourceConfig). Added working schema blocks mirroring the passing e2e config, plus an explanatory note (en + zh).
8. zh sink claimed kafka_headers_fields "configure carefully" with format = NATIVE; the code actually throws OPERATION_NOT_SUPPORTED at serializer construction. zh aligned with the (correct) English page.
9. [formats](../formats) links pointed to a directory with no index page; fixed to ../formats/overview.md (Kafka + Pulsar source, en + zh).

File connectors:
10. FTP source Key Features checklist missed parquet/orc, which the same page's own option table and examples use (en + zh).
11. GCS source field_delimiter default was documented as \001 for both text and CSV; code defaults to , for CSV (CsvReadStrategy).
12. GCS source option table had 4 duplicated rows (csv_use_header_line, file_filter_modified_start/end, sort_files_by_modification_time) - removed the duplicates (en + zh).
13. COS source null_format was documented as text-only; CSV reading honors it too (en + zh).
14. zh sink CosFile/FtpFile field_delimiter said "text only" while en said "text and csv" (code applies it to CSV writes); zh aligned.

Zeta engine:
15. event-listener.md (en + zh) documented non-existent event types READER_OPEN/READER_CLOSE/WRITER_OPEN/WRITER_CLOSE and a non-existent WriterOpenEvent class. Replaced with the real EventType values (LIFECYCLE_*, READER_MESSAGE_DELAYED) and the example's wrong imports/switch cases fixed so the sample code now matches the API.
16. rest-api-job-lifecycle.md (en + zh): the /logs/:jobId endpoint was described as returning "last N lines"; it returns a list of matching log files with logLink entries (LogService). Quoted the real duplicate-job-id error message instead of an invented one, and replaced the misleading "Savepoint path not found" troubleshooting row that contradicted the page's own statement that REST cannot target a savepoint path.
17. zh local-mode-deployment.md used the deprecated -e local flag (deprecated since 2.3.1); fixed to -m local, matching the en page and the same zh page's own second example.

Documentation index (sidebars.js):
18. Ten existing user-facing docs were unreachable from the navigation: transforms/encrypt, getting-started/recipes/jdbc-to-jdbc, introduction/concepts/incompatible-changes, introduction/concepts/metadata-spi, introduction/concepts/gravitino-type-mapping, engines/zeta/stain-trace, engines/zeta/stain-trace-quickstart, engines/zeta/realtime-observability (all exist in en and zh). Registered them in the sidebar. The PoC docs under developer/ were left unlisted intentionally (one is explicitly marked as such).

Chinese documentation missing large sections vs English (verified same-content sync):
19. zh/connectors/source/OssJindoFile.md was missing ~30 option subsections and the whole Example section (172 vs 592 lines).
20. zh/connectors/source/MyHours.md, Persistiq.md, SftpFile.md, SqlServer-CDC.md were missing option sections / example sections / changelog coverage vs en.
All synced sections keep code blocks byte-identical to the English docs (verified by scripted diff).

What was changed

29 files: 15 English, 13 Chinese, 1 sidebar config. Net +1103 / -91 lines of real documentation content (option tables, examples, descriptions, links, index entries).

Duplicate PR check (last 7 days)

Checked apache/seatunnel PR list immediately before submitting: recent docs PRs are #13135, #13097, #13072, #13050 (my own earlier fixes), #13148 (RegexExtract rewrite), #13122 (FilterRowKind), #13118 (Split). The files touched by the open PRs (#13135/#13097/#13072/#13050) were explicitly excluded from this change, and none of the other PRs overlap with the areas fixed here.

Verification

  • Scripted link integrity scan over all en/zh markdown (relative targets resolved against the repo, code fences excluded): no broken links introduced; the only remaining hits are regex artifacts inside code fences.
  • Code-fence balance check on all 29 modified files: all balanced.
  • docs/sidebars.js validated by requiring it in Node; all newly registered ids were checked to exist as files under both docs/en and docs/zh.
  • For every option/default/type claim, the defining Java source (Options classes, factories, dialect loader, deserializer, REST service, EventType enum) was read and quoted before editing.
  • A full docusaurus build locally was not run because the site build lives in the separate apache/seatunnel-website repository (CI syncs this repo into it); the GitHub document workflow will run that build on this PR.

Co-authored-by: multica-agent <github@multica.ai>

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for contributing to Apache SeaTunnel! The source-aligned defaults, dialect names and event constants are useful corrections. I found three remaining operational instructions that do not match the actual normal paths; these can be fixed in documentation without changing runtime code.

Reviewed head 50f1ae95f292042bf6353735751da6fe5edc980a against base 9f741b9c64220db31bd94c62dd0749d0b71e9358. Report time: 2026-11-06T01:19:33.685911+00:00.

What Problem Does This PR Solve?

User pain point: Users encounter stale option names/defaults, incomplete examples and inaccessible navigation entries.

Fix approach: Update 29 documentation/sidebar files across connector options, event examples, REST troubleshooting and Chinese reference pages.

One-sentence summary: Bring the references closer to the code users actually run.

Example: An explicit unsupported JDBC dialect fails selection instead of falling back; leaving it unset allows URL-based selection. The new text correctly distinguishes those paths.

1. Code Change Review

1.1 Core Logic Analysis

The complete diff changes only documentation and sidebar entries. Source checks include JdbcDialectLoader.load:92-125, Kafka format/semantics options, shared file readers, EventType/import packages, REST job submission, SFTP identity setup and Jindo source OptionRule. The protobuf Address example matches the current converter nested-message-name/lowercase-field handling; it is not a case-mismatch finding.

Before / after:

Before: unsupported explicit dialect described as fallback; Kafka default described as 2PC; old event names/imports
After: explicit dialect validation and URL fallback distinguished; NON default stated; current LIFECYCLE names/imports
Remaining: stop/resubmit guidance, SSH-agent guidance and optional text/CSV schema claim are inaccurate

Key findings:

  • Explicit dialect matching and default Kafka semantics are corrected.
  • File delimiter/null-format claims are checked against shared readers.
  • Event examples now use the actual API packages/constants.
  • Normal factory validation still requires Jindo text/CSV schema.
  • Cancellation does not by itself remove retained job history, and the SFTP connector does not install an SSH-agent identity provider.

Complete runtime path:

Documentation examples -> FactoryUtil OptionRule validation -> connector construction
JDBC config -> JdbcDialectLoader explicit name or URL selection
Jindo text/CSV -> required SCHEMA check -> reader (schema-less fallback not reachable normally)
SFTP config -> new JSch -> addIdentity(keyfile) -> session.connect (no agent integration)
REST submit -> CoordinatorService submission -> retained JobHistoryService metrics duplicate-ID guard

Correctness and boundaries: Most edits accurately describe existing behavior. The remaining inaccuracies matter because they prescribe executable recovery/setup steps. Correct them at the documentation source; changing runtime contracts to make examples true would unnecessarily expand this PR.

1.2 Compatibility Impact

Fully compatible. No public API, option name, default, protocol or serialized state is changed.

1.3 Performance / Side-Effect Analysis

No runtime code is changed, so CPU, memory, GC, networking, lock contention, concurrency, retries, idempotency and resource ownership are unchanged.

1.4 Error Handling and Logging

No exception-handling or logging implementation changes.

Issue 1: Do not imply cancellation alone makes a retained job ID reusable

  • Location: docs/en/engines/zeta/rest-api-job-lifecycle.md:396
  • Problem description: CoordinatorService.java:1459-1465 rejects a non-savepoint submission when JobHistoryService still holds metrics for that ID. Cancel/stop can create or retain that history, so the proposed resubmit can fail again after cancellation.
  • Potential risk: Operators can follow the recovery advice and remain blocked, or confuse a fresh submission with savepoint recovery.
  • Best improvement: In both languages distinguish a fresh submission with a new job ID from intentional savepoint restoration using the supported restore flow. Do not recommend deleting history/checkpoint data as a generic workaround.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

Issue 2: Remove unsupported SSH-agent guidance from the SFTP example

  • Location: docs/zh/connectors/source/SftpFile.md:651
  • Problem description: SFTPConnectionPool.java:179-209 creates plain JSch and calls addIdentity(keyFile) without a passphrase or agent identity repository. Configuring an external SSH agent does not connect that agent to this JSch instance.
  • Potential risk: The documented remedy for an encrypted private key does not work through the actual connector path.
  • Best improvement: State the supported key-loading limitation and remove the agent claim in both language references where present. Do not suggest that login password is a key passphrase; do not add a new authentication feature in this docs PR.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

Issue 3: Require schema for Jindo text and CSV in the normal factory path

  • Location: docs/zh/connectors/source/OssJindoFile.md:153
  • Problem description: OssFileSourceFactory.java:70-78 conditionally requires ConnectorCommonOptions.SCHEMA for TEXT and CSV before the reader is built. The new prose and content-only example promise a schema-less path that normal validation rejects.
  • Potential risk: A copied text/CSV job fails initialization instead of producing the advertised single content column.
  • Best improvement: Mark schema conditionally required in the table and examples for text/CSV in both languages. If showing a single content column, explicitly configure that schema rather than relying on an unreachable reader fallback.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

The change stays within the intended area. No new production method or field requires an explanatory comment.

2.2 Test Coverage and Test Stability

No UT/E2E implementation changed, so a test-stability rating is not applicable. No local tests were executed.

Local verification: git fetch obtained the reviewed head; an independent seatunnel-review-13149 worktree was checked out. git diff 9f741b9c64220db31bd94c62dd0749d0b71e9358...50f1ae95f292042bf6353735751da6fe5edc980a covered all 29 changed files, reconciled with GitHub's complete files list. git diff --check returned 2. Source searches and caller inspection support the paths above. No local build, unit test, integration test, or PR runtime execution was performed, as requested. CI is separate evidence.

2.3 Documentation Updates

The three corrections need EN/ZH parity. Other translated examples and navigation additions remain documentation-only. No website build or example job was run locally.

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix. The correction belongs at the affected boundary rather than in unrelated engine code.

3.2 Maintainability

Keep the source declarations as the reference for future changes.

3.3 Extensibility

No additional abstraction is needed for this focused correction.

3.4 Historical-Version Compatibility

Historical API, configuration and checkpoint formats are unchanged.

4. Issue Summary

Number Issue Location Severity
1 Do not imply cancellation alone makes a retained job ID reusable docs/en/engines/zeta/rest-api-job-lifecycle.md:396 Medium
2 Remove unsupported SSH-agent guidance from the SFTP example docs/zh/connectors/source/SftpFile.md:651 Medium
3 Require schema for Jindo text and CSV in the normal factory path docs/zh/connectors/source/OssJindoFile.md:153 Medium

Full-scan check: complete diff, affected callers, failure/lifecycle branches, compatibility, test behavior/stability, documentation and current merge gates examined. Existing reviews, inline comments and discussion were read; there is no independent technical finding or maintainer approval/change-request intent to reconcile.

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers — must be fixed: Issue 1: Do not imply cancellation alone makes a retained job ID reusable; Issue 2: Remove unsupported SSH-agent guidance from the SFTP example; Issue 3: Require schema for Jindo text and CSV in the normal factory path Apache Build is SUCCESS. Missing checks alone do not establish disabled workflows. A write-capable maintainer owns workflow approval/check adoption and the effective merge approval.
  2. Recommended fixes — non-blocking: None.

Overall assessment and alternatives: The green Build does not prove the operational prose. Please correct the three source-confirmed instructions; no unrelated dependencies or module changes are needed.

Upstream snapshot: dev, ahead 2, behind 0, compare ahead, merge state BLOCKED. Behind/diverged alone is metadata, not a request to synchronize. Daniel has READ permission; this COMMENT is a technical review, not a write-capable maintainer approval.

Resolve Jdbc.md (EN/ZH) conflicts: keep the dev-side dialect list with
CockroachDB and Inceptor verified in apache#12828.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the follow-up, @zhangshenghang. I re-checked the current head dd851e763d6be6fb3c89bf409d6cfb51027f134a. The only new commit since my last review (50f1ae95) is the merge of dev (df59bb4). For the 29 files this PR touches, git diff 50f1ae95 dd851e76 is empty, so the three earlier points are still open. The merge did combine cleanly with the CockroachDB dialect rows from #12828.

I'm sorry: I missed one more issue in the previous round. It is listed below as a carryover (Issue 4) so everything is in one place.

What Problem Does This PR Solve?

Many connector and Zeta pages describe options, defaults, event types and REST behavior that no longer match the code. Some Chinese pages are also missing sections, and some pages cannot be reached from the sidebar. The PR fixes this in docs only: 29 files, en and zh, plus docs/sidebars.js.

1. Code Change Review

1.1 Core Logic Analysis

The PR changes documentation only. I spot-checked these claims against source again on this head, and they hold:

  • JdbcDialectLoader.load (.../jdbc/internal/dialect/JdbcDialectLoader.java:92-125): an explicit dialect only matches dialectFactoryName(). With no match, matchingFactories.get(0) fails. Leaving dialect unset falls back to URL matching. The new "explicit value fails, unset falls back" prose is correct.
  • EventType (seatunnel-api/.../api/event/EventType.java:31-36): LIFECYCLE_* and READER_MESSAGE_DELAYED exist. The new imports resolve to api.source.event, api.sink.event and api.table.schema.event.
  • The GCS CSV delimiter default, the removed duplicate GCS rows, and every new sidebar id exist in both docs/en and docs/zh.

1.2 Compatibility Impact

Fully compatible. No code, option name, default or serialized format changes.

1.3 Performance / Side-Effect Analysis

None. Documentation only.

1.4 Error Handling and Logging

No code change. The documentation issues are below.

Issue 1: Cancelling a job does not by itself make a fixed job ID reusable (still open)

  • Location: docs/en/engines/zeta/rest-api-job-lifecycle.md:396, docs/zh/engines/zeta/rest-api-job-lifecycle.md:382
  • Problem: The remedy still says "Cancel or stop the existing job first, then resubmit". CoordinatorService (around lines 1459-1465) rejects a non-savepoint submit whenever JobHistoryService still holds metrics for that ID. A cancelled job's history is kept, so the resubmit can fail again with the same error.
  • Risk: Operators who follow the advice stay blocked.
  • Best improvement: In both languages, say to submit a fresh job with a new job.id, or to restore intentionally with the documented savepoint/restore flow. Do not suggest deleting history or checkpoint data as a generic workaround.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

Issue 2: Unsupported SSH-agent guidance in the SFTP key note (still open)

  • Location: docs/zh/connectors/source/SftpFile.md:651 (newly added). The same sentence already exists in docs/en/connectors/source/SftpFile.md:662.
  • Problem: SFTPConnectionPool (around lines 179-209) creates a plain JSch and calls addIdentity(keyFile) with no passphrase and no agent identity repository. Configuring an external SSH agent has no effect on this connection.
  • Risk: The suggested fix for a passphrase-protected key does not work.
  • Best improvement: Say that passphrase-protected keys are not supported and must be decrypted first. Drop the SSH-agent wording; fixing the en line too keeps the two languages in parity.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

Issue 3: Jindo OSS text/CSV is documented as schema-optional, but the factory requires schema (still open)

  • Location: docs/zh/connectors/source/OssJindoFile.md:153 (newly synced) and the schema row at :77. The English counterpart is docs/en/connectors/source/OssJindoFile.md:153.
  • Problem: OssFileSourceFactory.optionRule() (connector-file-jindo-oss/.../OssFileSourceFactory.java:70-78) requires ConnectorCommonOptions.SCHEMA when file_format_type is TEXT, JSON, EXCEL, CSV or XML. "You can choose whether to specify schema" for text/CSV, and the schema-less content example, both fail validation.
  • Risk: A job copied from the page fails at initialization.
  • Best improvement: Mark schema as conditionally required for those formats. If you keep the single-content-column example, configure that schema explicitly. Applying the same fix to the en page keeps parity.
  • Severity: Medium (blocking)
  • Raised by another reviewer: No

Issue 4 (carryover, missed in my previous review): the JDBC dialect list still lists Inceptor and is missing real dialect names

  • Location: docs/en/connectors/source/Jdbc.md:304-305, docs/zh/connectors/source/Jdbc.md:300-301, docs/en/connectors/sink/Jdbc.md:297-299, docs/zh/connectors/sink/Jdbc.md:296-298
  • Problem: The PR description says StarRocks and Inceptor were replaced with real names (OpenGauss, Presto, DuckDB). The diff only replaces StarRocks with OpenGauss; Inceptor is still in all four tables. No JdbcDialectFactory returns Inceptor from dialectFactoryName(). InceptorDialect is only created by HiveDialectFactory.create(...) when compatible_mode = "inceptor" (.../dialect/hive/HiveDialectFactory.java:47-51). Meanwhile Presto and DuckDB are real factory names but are not listed. The new prose says the value "must match one of the dialect names in the dialect list below", so the list now acts as a contract and these gaps matter.
  • Risk: dialect = "Inceptor" fails job initialization, which is the same trap this PR fixes for StarRocks. Valid Presto/DuckDB users are told their value is unsupported.
  • Best improvement: Remove Inceptor from the four tables. Add the same note as for StarRocks: leave dialect unset or use HIVE, with compatible_mode = "inceptor". Add Presto and DuckDB (all dialectFactoryName() values are in DatabaseIdentifier).
  • Severity: Medium (blocking; it is item 2 of the PR's own stated scope)
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

No code. docs/sidebars.js stays valid; every new id exists in both languages.

2.2 Test Coverage and Test Stability

Not applicable (no tests changed). I did not build anything locally.

2.3 Documentation Updates

En/zh parity is good for the edited sections. The four issues above need the same fix in both languages.

Overlap note: your sibling PR #12986 (open) edits the same paragraphs: the JDBC dialect description in both source and sink, and the Kafka sink "2pc by default" sentence. Whichever PR merges second will conflict textually. #12986's note already states that Inceptor is not a valid dialect value, which supports Issue 4. I suggest keeping the JDBC dialect and Kafka-sink-default wording in one of the two PRs and dropping it from the other, so reviewers don't have to reconcile two versions.

3. Architectural Soundness

Fixing this in the documentation is right; runtime contracts should not change to fit the docs. No further structure is needed.

4. Issue Summary

Number Issue Location Severity Status
1 Cancel/stop advice does not free a retained job ID docs/en/engines/zeta/rest-api-job-lifecycle.md:396 (+ zh :382) Medium Still open
2 SSH-agent guidance not supported by the SFTP connector docs/zh/connectors/source/SftpFile.md:651 (+ en :662) Medium Still open
3 Jindo text/CSV schema documented as optional but required docs/zh/connectors/source/OssJindoFile.md:153 (+ en :153) Medium Still open
4 Dialect list still has Inceptor; Presto/DuckDB missing docs/en/connectors/source/Jdbc.md:304 (+ 3 more tables) Medium New (carryover)

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers (must fix): Issues 1-4 (all documentation accuracy, en + zh).
  2. Non-blocking: coordinate the overlapping JDBC/Kafka paragraphs with #12986.

CI: Apache Build passes on this head. The branch is 0 commits behind dev and has no merge conflicts. CI is not a blocker here; only the four documentation corrections remain. Thanks again for this careful source-checked audit. It is very close.

…idance, Jindo schema requirement, JDBC dialect list
@zhangshenghang

Copy link
Copy Markdown
Member Author

All four issues from the latest review are fixed in 29df682 (docs only):

  1. Job-id reuse remedy (rest-api-job-lifecycle.md, en + zh): the remedy now says to submit a fresh job with a new job.id, or to restore intentionally via the documented savepoint/restore flow; nothing suggests deleting history or checkpoint data. The trigger cell also states that a cancelled job's history is retained, so cancelling alone does not free the ID.
  2. SFTP key note (SftpFile.md, en + zh): both languages now say passphrase-protected key files are not supported and must be decrypted before the job starts; the SSH-agent wording is dropped.
  3. Jindo OSS schema (OssJindoFile.md, en + zh): the schema row is marked conditional — required for text/json/excel/csv/xml (matching OssFileSourceFactory.optionRule()), auto-inferred for parquet/orc. The text/CSV walkthrough no longer shows a schema-less path: the single-content-column example configures that schema explicitly.
  4. JDBC dialect list (Jdbc.md source/sink, en + zh): Inceptor is removed from all four tables and that slot now lists Presto; a DuckDB row is added; the dialect note now also covers Inceptor (leave dialect unset or set it to HIVE, with compatible_mode = "inceptor").

On the overlap with #12986: the four dialect tables in this PR are now byte-identical to #12986's pushed text, so whichever PR merges second auto-resolves without a manual fix. The Kafka sink semantics note keeps this PR's wording because #12986's sentence links to a #semantics anchor that does not exist on this branch; that single blockquote line may need a one-line resolution if both PRs are merged.

@zhangshenghang

Copy link
Copy Markdown
Member Author

Follow-up on the overlap flagged in #12986's latest review: this PR's Kafka NATIVE note (en :459, zh :457) repeated the "headers are encoded inside the value byte array" claim. Fixed in e675a7c in both languages — headers are carried separately in the Kafka record headers, and kafka_headers_fields + format = "NATIVE" is rejected at job initialization — with the sentence now byte-identical to #12986's corrected text. Together with the four byte-identical JDBC dialect tables, the overlap between the two PRs now auto-resolves on merge.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the quick and careful follow-up, @zhangshenghang, and for both comments. I re-checked the current head e675a7c15bfd754f3a1b85eb59ad2ac494b080ab. The two new commits (29df682d, e675a7c1) touch 12 docs files, and every point in your 10:52Z comment matches what I see in the diff and in the source. On the overlap with #12986 (your 11:03Z comment): I compared the four JDBC dialect tables and the Kafka NATIVE sentence against #12986's head da2d164b, and they are byte-identical, so the second merge should not need manual work on those lines. The only remaining overlap is the Kafka sink semantics blockquote you mentioned, which can be handled whenever the second PR lands. All four issues from my previous review are now fixed.

What Problem Does This PR Solve?

Connector and Zeta pages described options, defaults, event types and REST behavior that no longer match the code. Some Chinese pages were missing sections, and some pages were not linked from the sidebar. The PR fixes this in documentation only (29 files, en + zh, plus docs/sidebars.js).

1. Code Change Review

1.1 Core Logic Analysis

Docs only. I checked the new text against source on this head:

  • JDBC dialect list. It now lists exactly the 28 non-generic dialectFactoryName() values in connector-jdbc/.../internal/dialect/*DialectFactory.java, including Presto and DuckDB. Inceptor is gone. JdbcDialectLoader.load (JdbcDialectLoader.java:92-125) matches an explicit dialect case-insensitively against dialectFactoryName(). HiveDialectFactory.create(compatibleMode, ...) (hive/HiveDialectFactory.java:47-51) returns InceptorDialect when compatible_mode = "inceptor", so the new advice "leave dialect unset or set HIVE, with compatible_mode = inceptor" is correct for both paths.
  • Job-id reuse. CoordinatorService.java:1458-1465 rejects a non-savepoint submit while JobHistoryService still holds metrics for that ID. The new cause/remedy cells (new job.id, or an intentional savepoint/restore) match this, and they do not suggest deleting history or checkpoints.
  • SFTP key note. The SSH-agent wording is gone in both languages, and passphrase-protected keys are now documented as unsupported. This matches the plain addIdentity(keyFile) path in SFTPConnectionPool.
  • Jindo OSS schema. OssFileSourceFactory.java:70-78 requires SCHEMA for TEXT, JSON, EXCEL, CSV and XML. The option row is now "conditional", and the single-content-column example sets schema { fields { content = string } } explicitly. The ### schema section at :349-351 already agreed.
  • Kafka NATIVE headers. KafkaSinkSerializer.java:96-105 throws LocalValidationException (a KafkaConnectorException subclass) with OPERATION_NOT_SUPPORTED when kafka_headers_fields is set together with NATIVE. DefaultSeaTunnelRowSerializer.create(topic, format, rowType) (:85-94, :205-210) maps the upstream headers column into Kafka record headers. So "carried separately in the Kafka record headers" is accurate.

1.2 Compatibility Impact

Fully compatible. No code, option name, default or serialized format changes.

1.3 Performance / Side-Effect Analysis

None (documentation only).

1.4 Error Handling and Logging

No code change. No open documentation issues remain.

2. Code Quality Assessment

2.1 Coding Standards

Not applicable (no code). docs/sidebars.js is unchanged since my last review and still valid.

2.2 Test Coverage and Test Stability

Not applicable (no tests changed). I did not build anything locally.

2.3 Documentation Updates

En/zh parity holds for all 12 files in the follow-up commits. Each fix is applied to both languages with the same meaning.

3. Architectural Soundness

Correcting the documentation to match the runtime contract is the right approach. Nothing else needs to change.

4. Issue Summary

Number Issue Location Severity Status
1 Cancel/stop advice did not free a retained job ID docs/en/engines/zeta/rest-api-job-lifecycle.md:395 (+ zh :382) Medium Fixed in 29df682d
2 SSH-agent guidance not supported by the SFTP connector docs/en/connectors/source/SftpFile.md:662 (+ zh :651) Medium Fixed in 29df682d
3 Jindo text/CSV schema documented as optional docs/en/connectors/source/OssJindoFile.md:77,153 (+ zh) Medium Fixed in 29df682d
4 Dialect list had Inceptor; Presto/DuckDB missing docs/en/connectors/source/Jdbc.md:294-306 (+ 3 tables) Medium Fixed in 29df682d

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers: None.
  2. Non-blocking: The Kafka sink semantics blockquote still differs from #12986. Whichever PR merges second needs a one-line resolution there, as you noted.

CI: Apache Build passes on this head. GitHub reports the branch as mergeable with no conflicts. It is 5 commits behind dev, which does not affect these docs. Thanks again for this thorough, source-checked cleanup.

@davidzollo davidzollo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the complete documentation/sidebar diff and its JDBC, Kafka, file-reader, event and REST call paths on head e675a7c15bfd754f3a1b85eb59ad2ac494b080ab.

Merge conclusion: hold for a small documentation fix.

[P3, blocking for this pass] Fix the malformed URL in the new Chinese Jindo documentation. docs/zh/connectors/source/OssJindoFile.md:383 ends the bare Wikipedia URL with 。. The current-head Dead links job requests https://en.wikipedia.org/wiki/Regular_expression。 and fails with HTTP 404 after its retry. That sentence is absent from the base version. Use a Markdown link with the Chinese punctuation outside its URL, or separate the punctuation from the bare URL, then rerun the link check.

The aggregate Build is green because this workflow marks the link-check job continue-on-error; it does not mean that job passed. Website build, code style and license checks passed. No runtime source is changed, so additional UT/IT are not necessary. The corrected dialect selection, Kafka headers/semantics, SFTP key limitation, Jindo schema requirement and job-ID/restore guidance match the implementation. No other blocking source finding identified. The fix belongs in the documentation; no connector or engine change is needed. Local compilation/tests were not run.

Review time: 2026-11-07T15:41:54-05:00

Jelana and others added 3 commits November 7, 2026 15:29
Co-authored-by: multica-agent <github@multica.ai>
…e doc

Co-authored-by: multica-agent <github@multica.ai>
@zhangshenghang

Copy link
Copy Markdown
Member Author

Fixed in f49332b — the bare Wikipedia URL in docs/zh/connectors/source/OssJindoFile.md is now a Markdown link with the Chinese period outside it, so the dead-links job resolves https://en.wikipedia.org/wiki/Regular_expression cleanly. Docs-only change, git diff --check clean.

One heads-up on the Build check: runs on my fork stopped being created after Nov 6 22:36 UTC — pushes no longer start runs and a manual workflow dispatch returns "Actions has been disabled for this repository" — so the link-check rerun has to wait until Actions is available on the fork again. The check on this PR should pick the run up once a Build run exists for the new head.

Jelana and others added 2 commits November 7, 2026 17:34
Co-authored-by: multica-agent <github@multica.ai>

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fast fix, @zhangshenghang, and for the heads-up about the fork's Actions. I re-reviewed the whole current diff on head 1855e96bcd0cf3b9fc9537c7ac654f231d0e8559.

First, an apology. In my approval on e675a7c1 I wrote that the Build passed. That was wrong in a way that mattered. The Dead links job in that run (job) had failed with a 404 on the Wikipedia regular-expression URL with a full-width period glued onto its end. The aggregate Build stayed green only because that job is continue-on-error. I should have opened the job list instead of trusting the summary. +1 to @davidzollo for catching it. This is a carryover from my previous pass, not a new problem you introduced.

What Problem Does This PR Solve?

Connector and Zeta pages described options, defaults, event types and REST behavior that do not match the code. Some Chinese pages were missing sections, and some pages were not linked from the sidebar. The PR fixes this in documentation only: 31 files, en + zh, plus docs/sidebars.js.

1. Code Change Review

1.1 Core Logic Analysis

Docs only. Since e675a7c1 the branch has these commits: one merge of dev (094cb8f5), one real fix (f49332bb), and three empty Trigger CI commits. I compared the PR's net diff against its old base and its new base, line by line:

  • f49332bb (the URL fix). docs/zh/connectors/source/OssJindoFile.md:383 is now a Markdown link to https://en.wikipedia.org/wiki/Regular_expression, with the full-width period after the closing parenthesis, so it is no longer part of the link target. That URL returns HTTP 200. In the earlier run it was the only dead link reported, so this resolves @davidzollo's finding. I also scanned every zh file changed in this PR for a bare URL running into full-width punctuation. The only other matches sit inside inline code (Pulsar.md:112, rest-api-job-lifecycle.md:28), and the link checker does not treat those as links. The en counterpart (docs/en/connectors/source/OssJindoFile.md:383) ends with an ASCII period, and that version passed the check before.
  • Merge 094cb8f5. dev had meanwhile changed the sink JDBC dialect tables (OpenGauss | Presto | Dsql and DuckDB | YashanDB | CockroachDB rows). The resolution keeps this PR's intent, with Inceptor removed and Presto in its place. Each of the four tables still lists exactly the 28 non-generic dialectFactoryName() values from connector-jdbc/.../internal/dialect/*DialectFactory.java. None is duplicated or missing. Every other line of the net diff is unchanged from the head I approved.

1.2 Compatibility Impact

Fully compatible. No code, option name, default or serialized format changes.

1.3 Performance / Side-Effect Analysis

None (documentation only).

1.4 Error Handling and Logging

No code change.

Issue 1 (non-blocking, cosmetic): the sink dialect tables are now unevenly laid out after the merge

  • Location: docs/en/connectors/sink/Jdbc.md:302-304, docs/zh/connectors/sink/Jdbc.md:301-303
  • Problem: The tail of the table is | DSQL | | |, | YashanDB | CockroachDB | |, | DuckDB | | |. The source pages use | YashanDB | DSQL | CockroachDB | + | DuckDB | | | (docs/en/connectors/source/Jdbc.md:305-306).
  • Risk: None functionally. All names are present. The sink and source tables simply no longer look alike. This also adds another merge-conflict spot with #12986, which is still open.
  • Best improvement: Optionally collapse the sink tail into the same two rows the source pages use.
  • Severity: Low (nit)
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Not applicable (no code). docs/sidebars.js is unchanged since my last review.

2.2 Test Coverage and Test Stability

Not applicable (no tests changed). I did not build anything locally.

2.3 Documentation Updates

En/zh parity still holds. The new commit only changes zh, because the en page never had the problem.

3. Architectural Soundness

Correcting the documentation to match the runtime contract is still the right approach. No connector or engine change is needed.

4. Issue Summary

Number Issue Location Severity Status
A Bare URL ending in full-width period (dead link) docs/zh/connectors/source/OssJindoFile.md:383 P3 (raised by @davidzollo; missed in my earlier approval) Fixed in f49332bb
1 Uneven sink dialect table layout after merge docs/en/connectors/sink/Jdbc.md:302-304 (+ zh :301-303) Low, optional Open, non-blocking

All four issues from my first review remain fixed.

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers (CI only): No Build run exists for this head, so the dead-link fix has not been verified by CI yet. The apache-side Build check reports "Workflow run detection failed". No other source or documentation blocker remains.
  2. Non-blocking: Issue 1.

On your 09:08Z comment: you are right. While Actions is disabled for the fork, the three Trigger CI empty commits cannot start anything, so there is no need to push more of them. The message "Actions has been disabled for this repository" usually comes from a billing or spending-limit hold on the account, or from the fork's Settings > Actions > General policy. Once it is re-enabled, start the Build workflow on docs-fix-20261105 by hand (Run workflow). The scheduled status updater will pick that run up for this check. When that run is green, with the Dead links job itself passing and not just the summary, I am happy to approve again. The branch is mergeable with no conflicts and is 2 commits behind dev, which does not affect these docs.

Thanks again for the careful, source-checked cleanup.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for re-enabling Actions and starting the run. CI was previously the only remaining blocker; CI is now passing, so I am changing my conclusion to approve.

The manually dispatched Build run 42844514186 on the current head 1855e96b completed successfully, and the Dead links job itself passed, so the OssJindoFile.md dead-link fix is now verified. Build website, Code style and License header also pass; the other lanes were skipped by change detection as expected for a docs-only PR. The apache-side Build check is green.

No source or documentation blocker remains; the uneven sink dialect table layout is still an optional nit. The branch is behind dev without conflicts, which does not affect these docs. Thanks again for the careful, source-checked cleanup.

@davidzollo davidzollo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@davidzollo
davidzollo added this pull request to the merge queue Nov 17, 2026
Merged via the queue into apache:dev with commit 9f3f7c2 Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants