Repository navigation
[Docs] Fix connector, transform and common-option doc inaccuracies verified against source code - #12941
Conversation
…rified against source code
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks a lot for this careful docs audit, @zhangshenghang! Checking each claim against the source is exactly the right way to fix docs, and most of the corrections here are accurate and genuinely helpful. I found one correction that goes in the wrong direction (Prometheus retry) and one that is incomplete (LLM api_key); details below.
What Problem Does This PR Solve?
- User pain point: Several connector/transform/common-options pages contradicted the code (Pulsar startup modes, Kudu type mapping, Splunk
params, sink/source common options, file save-mode tables, LLMapi_key, zh Fluss placeholder), so users following them hit config errors or wrong expectations. - Fix approach: Docs-only changes (19 files, en + zh kept in sync), each re-checked against factories/option definitions/runtime code.
- One-sentence summary: Aligns 9 documentation topics with the actual behavior in code; 7 look correct, 2 need a small follow-up.
1. Code Change Review
1.1 Core Logic Analysis
No Java, config, SPI, or registry files are touched, so there is no runtime, engine, checkpoint or serialization path involved. I verified each doc claim against the code on current dev:
| Topic | Verdict | Evidence |
|---|---|---|
| Pulsar startup modes / no configurable subscription type | Correct | PulsarSource.createStartCursor handles EARLIEST/LATEST/SUBSCRIPTION/TIMESTAMP; PulsarMultiTableConfig (~L293-L306) validates the TIMESTAMP/SUBSCRIPTION prerequisites |
| Kudu source mapping | Correct | KuduTypeMapper.mapping (L46-L50): INT8->BYTE, INT16->SHORT, INT32->INT |
| Kudu sink mapping | Correct | KuduRowSerializer.transform passes values through PartialRow.addObject, so the boxed Java type must match the Kudu column type exactly |
Splunk params optional, output_mode default json |
Correct | SplunkSourceFactory.optionRule() does not list params; SplunkSourceParameter L57-L62 uses putIfAbsent("output_mode","json") |
Fluss zh ${schema_name} -> ${database_name} |
Correct | FlussSourceConfig L96-L97 builds the identifier with database + table only, so schema is null (matches the en page) |
sink plugin_input is a list |
Correct | ConnectorCommonOptions.PLUGIN_INPUT is Option<List<String>> |
FakeSourceStream / field_name examples |
Correct | not a plugin / not an option |
| GcsFile / OssJindoFile / SmbFile save-mode lists | Correct | GcsFileSinkFactory L62-L63 and SmbFileSinkFactory L59-L60 expose both options; the jindo-oss sink factory does not |
Prometheus sink retry default 0 |
Incorrect | see Issue 1 |
LLM api_key conditional list |
Incomplete | see Issue 2 |
1.2 Compatibility Impact
Fully compatible. Documentation only; no option, default, or behavior changes.
1.3 Performance / Side-Effect Analysis
None (no code). The only side effect is on what users believe, which is why the two inaccurate statements below matter.
1.4 Error Handling and Logging
Issue 1
- Location:
docs/en/connectors/sink/Prometheus.md(retryrow) anddocs/zh/connectors/sink/Prometheus.md(retryrow) - Problem description: The PR changes the documented default from
3to0and says retries are disabled unless a positive value is set. That is not what the sink does. The option itself hasnoDefaultValue()(HttpCommonOptions.RETRY), butPrometheusSinkL69 applies the default explicitly:httpParameter.setRetry(pluginConfig.getOptional(PrometheusSinkOptions.RETRY).orElse(3));, with the comment right above it stating "Retries default to on (3) whenretryis not set" (added by #11974). So whenretryis omitted, retries are ON with a budget of 3. The original3in the docs was correct, and this edit makes the page wrong. - Potential risk: Users reading the new text will think a flaky remote-write endpoint fails fast by default and may add retry handling or tuning around a wrong assumption; the page also now contradicts the code comment that documents the intended behavior.
- Best improvement: Revert the default back to
3in both en and zh. If you want to be precise about the "no default in the option definition" nuance, say that the effective default applied by the sink is3, and that0disables retries (the existing "Set to0to disable retries" sentence was already right). Please also drop the "has no default in code" wording. - Severity: Medium (documents the opposite of real behavior, and it is introduced by this PR)
- Raised by another reviewer: No
Issue 2
- Location:
docs/en/transforms/llm.md(api_keysection) anddocs/zh/transforms/llm.md(api_keysection) - Problem description: The new text says the option rule enforces
api_keyforOPENAI,DOUBAOandMICROSOFT.LLMTransformFactory.optionRule()has a second conditional:QIANFANalso requiresAPI_KEY(together withSECRET_KEYandOAUTH_PATH). So the list of providers that enforce it is incomplete. - Potential risk: A QIANFAN user could conclude
api_keyis not enforced for their provider. Since the whole point of this change is to make the "conditionally required" statement accurate, it should be complete. - Best improvement: Add
QIANFANto the list (en and zh). Optionally pointing to the provider-specific options (secret_key,oauth_path) keeps it consistent. Because the phrase "other providers ... need it at runtime" is not backed by the option rule, I would also either verify that claim for the remaining providers or soften it. - Severity: Medium
- Raised by another reviewer: No
Issue 3
- Location:
docs/en/connectors/common-options/sink-common-options.md, "Important note" paragraph - Problem description: The paragraph says to see "the note at the end of this page" for when the option is mandatory. That note exists, but the wording is indirect and the first sentence ("a sink has no
plugin_output") reads as a non-sequitur next to the heading. - Potential risk: Minor readability only.
- Best improvement: Optional: say directly "
plugin_inputis only mandatory when the job has more than one source, transform or sink (see the note at the end of this page)". - Severity: Low
- Raised by another reviewer: No
2. Code Quality Assessment
2.1 Coding Standards
No code changed. Markdown tables are column-consistent and the en/zh pairs are kept in sync. Minor style note: the LLM tables use conditional in the Required column; this is understandable, but other pages typically use yes/no, so please make sure it renders consistently (not blocking).
2.2 Test Coverage and Test Stability
No tests changed, none required for docs-only edits. Rating: Stable. (The PR description reports a markdown link check; I have not re-run it.)
2.3 Documentation Updates
en and zh are both updated for every topic that exists in both locales; the Fluss (zh only) and sink-common-options "Important note" (en only) cases are handled correctly. Only the two inaccuracies above need follow-up, and each needs to be fixed in both languages.
3. Architectural Soundness
3.1 Elegance
Precise fix (small, targeted documentation corrections).
3.2 Maintainability
Good: each statement points at a verifiable source behavior, which makes future audits easy.
3.3 Extensibility
Not applicable.
3.4 Historical-Version Compatibility
No impact; docs only. Note that the Prometheus retry default was introduced with #11974, so the 3 default applies to the current line only.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | Prometheus retry default documented as 0, but the sink applies 3 when unset |
docs/{en,zh}/connectors/sink/Prometheus.md |
Medium |
| 2 | LLM api_key conditional list omits QIANFAN |
docs/{en,zh}/transforms/llm.md |
Medium |
| 3 | Sink common options note wording is indirect | docs/en/connectors/common-options/sink-common-options.md |
Low |
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers - must be fixed
- Issue 1: restore the Prometheus
retrydefault to3(en + zh). - Issue 2: add
QIANFANto theapi_keyconditional list and avoid claims the option rule does not back (en + zh).
- Issue 1: restore the Prometheus
- Recommended fixes - non-blocking
- Issue 3: tighten the sink common options note.
Overall assessment: this is a valuable cleanup and the large majority of corrections (Pulsar, Kudu, Splunk, Fluss zh, common options, save-mode tables) match the source. CI on the current head is green (Build, labeler, Notify). Once the two items above are fixed, I am happy to approve. Thanks again for the thorough work!
Alternatives considered: dropping the Prometheus and LLM hunks from this PR and handling them separately would also unblock the rest, but fixing them in place is simpler.
…LLM api_key providers - Restore the Prometheus sink retry default to 3: the sink applies 3 when the option is omitted (PrometheusSink), 0 disables retries. Fixes the wrong 'no default in code' claim in en/zh. - Add QIANFAN to the LLM api_key conditionally-required provider list (required together with secret_key and oauth_path) in en/zh. - State directly when sink plugin_input is mandatory in the Important note.
|
All three review points are addressed in a74dc46:
|
The option rule has a conditional for QIANFAN, but LLMTransform.open() sends it to the default branch and throws Unsupported model provider, so advertising it misleads users into a startup failure (as established in the apache#12423 review). Keep the requirement statement to the providers the runtime actually supports.
|
Follow-up correction to my previous commit (a74dc46): the LLM Reason: the option rule does declare a conditional for |
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the updates, @zhangshenghang. Sorry for not following QIANFAN through open() in my previous review: your correction is right, and the docs should not advertise a provider that reaches the unsupported-provider branch. I re-read all 19 changed files at bf80086f4cde00a912de2643bfdc4c3547fa9053 and rechecked their claims against the current source. The previous Prometheus/default and provider-scope points are closed. I did miss the incomplete simple FakeSource example in the earlier round; Issue 1 below is explicitly a carry-over omission, not a new regression from your latest commit.
What Problem Does This PR Solve?
- User pain point: Documentation gives incorrect connector types, startup choices, configuration requirements and routing examples, leading users to select unsupported settings or misunderstand defaults.
- Fix approach: Correct the paired EN/ZH pages against the factories, option declarations and runtime implementations; bring the ZH Fluss example into agreement with the existing EN page.
- One-sentence summary: Make nine documentation topics describe the behavior the code actually implements.
For example, an unset Prometheus retry still becomes 3 in the sink, even though the shared option has no declared default. The revised row now distinguishes the effective runtime default from the option declaration.
1. Code Change Review
1.1 Core Logic Analysis
This is documentation-only: 19 files, +60/-37. No Java, configuration definition, dependency, SPI or distribution file changes.
Representative before/after:
Before: Kudu INT8 / INT16 / INT32 -> SeaTunnel INT
After : Kudu INT8 -> TINYINT; INT16 -> SMALLINT; INT32 -> INT
Before: sink plugin_input [string]
After : sink plugin_input [list], accepting one name or an array
Before: FakeSourceStream { plugin_output = "fake_table" }
After : FakeSource { plugin_output = "fake_table" }
The last rename selects a real factory but still omits its required schema; see Issue 1.
Claim-by-claim source checks:
| Topic | Source evidence and result |
|---|---|
| Common source/sink wiring | ConnectorCommonOptions.java:51-70 defines output as String and input as list. ConfigParserUtil.java:63-101,147-165,232-255 separates simple/complex DAG requirements. Source owns output; sink owns input. |
| Several sink input names | MultipleTableJobConfigParser.java:633-672 resolves inputs, checks compatible produced types, and creates the union path. This is Zeta behavior, as the text specifies. |
| File save modes | GcsFileSinkFactory.java:62-63,141-155 exposes/uses both save modes. The complete Jindo-OSS factory option rule does not expose them. The revised table and FAQ agree. |
| Kudu narrow integers | KuduTypeMapper.java:44-50 returns BYTE/SHORT/INT for INT8/16/32; KuduRowSerializer.java:92-103 forwards typed values to PartialRow.addObject. |
| Pulsar startup/reset | PulsarSource.java:314-329 selects EARLIEST/LATEST/SUBSCRIPTION/TIMESTAMP. PulsarMultiTableConfig.java:293-305 validates timestamp/reset prerequisites. PulsarSource.java:261-262 sets the subscription name without a subscription-type option. |
| Splunk params | SplunkSourceFactory.java:49-57 does not require params; SplunkSourceParameter.java:57-62 creates the map when absent and defaults output_mode to json. The new text separately explains the useful search parameter. |
| Prometheus retry | PrometheusSink.java:69 applies getOptional(RETRY).orElse(3); PrometheusWriter.java:78,174 uses that attempt budget, with 0 giving one initial attempt and no retries. Restoring 3 in the table is correct. |
| LLM API key | LLMTransformFactory.java:51-64 has conditional rules. LLMTransform.java:142-145 rejects QIANFAN at runtime. Listing the supported OPENAI/DOUBAO/MICROSOFT validation branches without advertising QIANFAN is the correct narrow statement. |
| Fluss placeholder | FlussSourceConfig.java:96-98,117-118 uses database/table identifiers; the three-argument TableIdentifier.of has no schema component. The new ${database_name} example matches the existing EN page. |
Key findings:
- The corrected type/default/startup claims match the actual factory/runtime boundaries, not only enum names.
- The previous Prometheus request is resolved at its effective default assignment. Your QIANFAN reply correctly distinguishes a declared validation branch from an implemented provider.
- This does not change execution or checkpoint behavior; users reach the described code only when following the documentation.
- The remaining example gap is small and local to the common-source page; the sink example already adds the needed schema.
Affected example runtime chain:
User copies the Simple source block into a job
-> FactoryUtil discovers FakeSourceFactory (identifier "FakeSource")
-> FakeSourceFactory.createSource -> FakeSource configuration
-> FakeConfig builds its CatalogTable (:467)
-> CatalogTableUtil.buildWithConfig (:195-199)
no schema -> "Schema config need option [schema]..."
-> source cannot initialize; no rows enter transform/sink execution
For complete configured jobs, common-option resolution builds the DAG before execution; Kudu mapping occurs at schema/row conversion, Pulsar at reader cursor/consumer preparation, and Prometheus retry at sink creation/write failure. None of those implementations is changed here.
1.2 Compatibility Impact
Fully compatible. Documentation aligns with current behavior; it changes no public API, option key, default value, protocol, checkpoint format or stored job. No migration entry is required. The deprecated input/output aliases remain implemented and documented.
1.3 Performance / Side Effects
No executable change, so no CPU, memory, GC, network, lock, concurrency, retry, idempotency or resource-release delta. Explaining the existing runtime retry default does not change its budget.
1.4 Error Handling and Logging
Runtime exceptions/logging are untouched. The docs now explain several existing validation boundaries more accurately. One example still reaches an immediate configuration error:
Issue 1: The renamed Simple FakeSource fragment still cannot initialize
- Location:
docs/en/connectors/common-options/source-common-options.md:31-36anddocs/zh/connectors/common-options/source-common-options.md:31-36. - Description: The source type is correctly renamed to
FakeSource, but the block contains onlyplugin_output.FakeConfig.java:467always builds a catalog table from the supplied config, andCatalogTableUtil.java:195-199rejects a missing schema. Even when placed inside an otherwise complete job, this source fragment does not register the promised dataset. - Risk: Readers following the newly corrected example still fail before source initialization. This was present in the earlier version and should have been caught in my last review; it is not a newly introduced code bug.
- Best improvement: Add a minimal
schema { fields { id = int } }to both Simple source blocks, as the sink-common-options example already does. Alternatively, explicitly replace this abbreviated block with a reference to the complete schema-bearing example below; adding the schema is the smallest useful correction. - Severity: Medium; blocking for the example's documented usability.
- Already raised by others: No; there are no non-Daniel reviews/inline comments. The author replies about Prometheus and QIANFAN are incorporated above rather than duplicated as findings.
2. Code Quality Assessment
2.1 Coding Standards
The Markdown follows the neighboring pages and paired terminology. No new production method/class/field needs code comments. Small whitespace changes to the LLM table are harmless. No unrelated code/dependency edits were found.
2.2 Test Coverage and Test Stability
There are no UT/E2E changes, so a test-stability rating is not applicable. New runtime tests are unnecessary for this documentation-only patch. The important check is comparing each changed statement/example with its real implementation; a green docs build cannot establish that a copied connector fragment initializes.
Local analysis/results: fetched the exact head into seatunnel-review-12941; read full git diff origin/dev...HEAD and all 19 changed files; used rg, numbered reads and direct source reads across the option/DAG, file-factory, Kudu, Pulsar, Splunk, Prometheus, LLM and Fluss paths listed above; git diff --check passed. No local compile, test, example execution, Docker or service run was performed. The initialization failure in Issue 1 is derived from the explicit schema check, not a claimed runtime reproduction.
2.3 Documentation Updates
All paired edits have matching EN/ZH meaning. The ZH-only Fluss correction matches EN rather than creating a language mismatch. Issue 1 needs the same minimal example fix in both languages.
3. Architectural Soundness
3.1 Elegance
Precise documentation repair at the right ownership boundary. There is no runtime defect root cause to redesign here: pages should reflect the connector factories and runtime defaults, rather than changing working code to fit old documentation. The smallest safe completion is the two example additions; a framework/configuration change would be unnecessary and riskier.
3.2 Maintainability
Central common-option pages are the right place for DAG/input/output semantics. Connector-specific type and cursor details remain on their own pages. Keeping option declaration and effective runtime default distinct avoids future drift.
3.3 Extensibility
The corrections use existing extension points and names. Future provider entries should be checked through open(), and future option rows through both declaration and runtime fallback, following the same verification method.
3.4 Historical-Version Compatibility
The latest published release checked was v3.0.0. This PR updates current documentation and does not change any historical job/state contract or install artifact. No upgrade/rollback step is introduced.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | Simple FakeSource fragment omits the required schema | EN/ZH source-common-options.md:31-36 |
Medium, blocking |
Completeness check: all changed pages read; every topic traced to factory/options/runtime code; example configuration, language parity, defaults, compatibility, resource impact and CI/merge gates checked. The prior two blockers are closed; Issue 1 is an explicitly acknowledged earlier omission.
5. Merge Recommendation
Conclusion: Ready to merge after fixes
- Blockers - must be fixed
- Issue 1: make both Simple source fragments include the required schema, then let the required checks run for that updated head.
- Recommended fixes - non-blocking
- None. The QIANFAN correction is accepted; please do not add unsupported-provider guidance to satisfy my earlier incomplete suggestion.
Overall, the source-backed audit is useful and the revised topics are accurate. A small schema addition is preferable to a code workaround or another broad docs rewrite. Build, notify and labeler are green on this head; green CI does not clear Issue 1. The branch is ahead 3/behind 2, compare diverged, with no merge conflict. That drift is metadata only, so I am not requesting a sync for green CI. No other maintainer approval/change request exists at the snapshot. Daniel's COMMENT is a technical review; formal approval/merge still needs a maintainer with write access after the example is corrected.
FakeConfig always builds a catalog table and CatalogTableUtil rejects a
missing schema, so the fragment with only plugin_output cannot initialize.
Add schema { fields { id = int } } to both en and zh blocks, as the
sink-common-options example already does.
|
Issue 1 is addressed in 004a2ef: both Simple FakeSource fragments (en and zh) now carry a minimal |
There was a problem hiding this comment.
Thanks for adding the explicit FakeSource schemas in 004a2ef79. I re-read the complete 19-file diff at 004a2ef79365bce982ea29f7a5faef79d39675ef and traced each changed statement back to the current implementation. My previous Issue 1 is resolved in both languages. The Prometheus and QIANFAN points remain closed; no new source/documentation blocker was found.
What Problem Does This PR Solve?
- User pain point: inaccurate dataset wiring, type mappings, cursor modes, and option descriptions can produce invalid configurations or misleading expectations.
- Fix approach: align the English/Chinese connector and transform pages with their factories and runtime consumers, including complete minimal FakeSource schema fragments.
- One sentence: make the documented configuration match what the current code accepts and executes.
For example, the source-common-options example previously named FakeSourceStream without a schema; it now uses FakeSource with schema.fields.id = int, so catalog-table construction has the required schema.
1. Code Change Review
1.1 Core Logic Analysis
The full diff is documentation-only. Before/after examples:
# Before
FakeSourceStream { plugin_output = "fake_table" }
# After
FakeSource {
plugin_output = "fake_table"
schema { fields { id = int } }
}Other substantive changes replace an INT-only Kudu mapping with byte/short/int widths, describe all four Pulsar startup modes and the conditional reset/timestamp requirements, mark Splunk request params as optional at validation while explaining meaningful export requirements, and state Prometheus's effective retry default of 3. The Chinese Fluss example now uses the database placeholder, matching English.
The actual configuration-to-runtime paths checked are:
Job configuration
-> ConfigParserUtil.isSimpleGraph/checkComplexGraph
single source + <=1 transform + single sink: default dataset IDs allowed
complex graph: source/transform outputs and transform/sink inputs required
-> ConnectorCommonOptions.PLUGIN_INPUT: List<String>, legacy fallback retained
-> MultipleTableJobConfigParser input resolution
multiple single-table inputs -> checkProducedTypeEquals -> union into sink
FakeSource fragment
-> FakeConfig.buildWithConfig -> CatalogTableUtil.buildWithConfig
-> require schema (CatalogTableUtil.java:195-200) -> parse fields -> catalog table
Kudu source -> KuduTypeMapper.mapping:46-51 -> BYTE/SHORT/INT for INT8/16/32
Kudu sink -> serializer/table schema conversion -> corresponding narrow Kudu types
Pulsar factory/config validation
-> TIMESTAMP needs timestamp; SUBSCRIPTION needs reset strategy
-> start cursor -> existing subscription retained / new subscription initialized
-> PulsarConfigUtil.createConsumerBuilder:103-105 sets subscription name only
-> reader seek/checkpoint message-ID recovery
Splunk factory -> inherited HttpSourceOptions.PARAMS optional
-> SplunkSourceParameter.buildWithConfig:57-63 -> default output_mode=json
-> form-encoded export request
Prometheus factory -> PrometheusSink.java:69 -> optional retry.orElse(3)
-> writer transport/retryable HTTP handling
LLM factory conditional API key rule -> LLMTransform.open:77-145
-> OPENAI/DOUBAO/MICROSOFT supported; QIANFAN throws unsupported
FlussSourceConfig.getTablePath:118 -> TablePath.of(database, table)
-> sink placeholder resolution: database is present, schema is absent
Key findings:
- The examples now supply a schema on both the simple and sink-common-options FakeSource fragments; the prior startup blocker is closed.
- Dataset wiring descriptions match the simple/complex graph validation. The documented multi-input sink union is subject to the implementation's same-produced-type check and cannot combine a multi-table source with another source.
- Kudu width mappings and Pulsar subscription/seek behavior match their normal source paths. Subscription type is not exposed as a connector option.
- GCS exposes both save-mode options (
GcsFileSinkFactory.java:62-63); Jindo OSS, OBS, COS and BOS factory rules do not. GCS also validates destructive paths before sink creation; this PR does not change that protection. - The LLM wording correctly describes the usable conditional-rule providers without advertising QIANFAN as supported at runtime. No production behavior is modified.
1.2 Compatibility Impact
Fully compatible. No API/SPI, configuration key/default, protocol, serialization format, or production historical behavior changes. Correcting documentation does not rename an option or require data migration. Existing legacy option fallback behavior remains in code.
1.3 Performance / Side-Effect Analysis
No production CPU, memory, GC, network, locking, concurrency, retry, idempotency, or resource-release changes. The documentation describes existing retry and save-mode behavior rather than changing their budgets or deletion semantics. Same-type union and external service prerequisites still apply.
1.4 Error Handling and Logging
No blocking issues found; no new numbered findings. The schema examples now avoid the traced missing-schema exception. Splunk validation optionality is distinguished from the search needed for useful export; the docs no longer imply a configurable Pulsar subscription type. No exception handling or logging is changed, and no credentials were introduced.
2. Code Quality Assessment
2.1 Coding Standards
The corrections are focused and use existing option names. There are no new production methods or fields requiring contract comments. Factory rules and runtime reads were checked together rather than inferring support from option declarations alone.
2.2 Test Coverage and Stability
No UT/E2E code changes, so the test-stability rating is not applicable. I did not run a local build, test, documentation site, or sample job. Validation here consists of reading the complete diff, the relevant parser/factory/runtime code and examples; git diff --check is clean. External Kudu, Pulsar, Splunk, Prometheus, GCS and Fluss services were not exercised.
2.3 Documentation Updates
The changed English/Chinese common-option, Kudu, Pulsar, Splunk, Prometheus and LLM statements agree. The Chinese Fluss correction matches the existing English database-based example. Schema/type snippets were checked against the actual configuration parser path; these are fragments, so a full job still needs its complementary source/sink and service settings.
3. Architectural Soundness
3.1 Solution Quality
A precise documentation correction; no workaround or runtime redesign.
3.2 Maintainability
Explicit schemas and a distinction between declared options and effective runtime behavior reduce ambiguity. Keep future edits tied to both factory validation and runtime consumers as done here.
3.3 Extensibility
The existing option tables and examples are sufficient; no new documentation abstraction or implementation change is needed.
3.4 Historical-Version Compatibility
Fully compatible with the current implementation. Users following older incorrect examples should use the corrected plugin/schema and narrow type mappings; there is no stored-data or protocol migration.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| - | No new issues; previous Issue 1 resolved | English/Chinese source-common-options schema fragments | None |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers that must be cleared: no source/documentation blocker from this review. Obtain successful required checks on this exact final head and the repository's write-capable maintainer approval.
- Suggested improvements, non-blocking: none added in this round.
The new head has no Build result attached at the checked snapshot; Notify test workflow and labeler are queued. An earlier head's green checks do not establish this head's result. The current dev comparison is diverged, ahead 4 / behind 4, without content conflicts. This is recorded merge-state metadata; pending checks and branch drift alone do not justify an extra sync request. The shared LLM fix #12938 has now merged into dev; if this head's eventual unit logs show that archived-wrapper failure, use that upstream correction rather than adding unrelated serialization changes here.
There are no independent maintainer approvals/change requests to endorse or dispute in the retrieved discussion. Overall the documented behavior now matches the traced code, and no alternative implementation is needed. This COMMENT review is Daniel's technical conclusion; final formal approval remains with a write-capable maintainer.
DanielLeens
left a comment
There was a problem hiding this comment.
The CI fact cited in my previous review has changed: the Build check for the current, unchanged head 004a2ef79365bce982ea29f7a5faef79d39675ef is now SUCCESS (Notify test workflow and labeler are also green). My previous review recorded that no Build result was attached yet and that CI was the only remaining gate; with Build now passing, my technical conclusion changes to approve. I did not find any source or documentation blocker in that review, and nothing has changed on the head since.
Thanks again for the quick fix of the FakeSource schemas. The branch being diverged from dev is merge-state metadata only and does not call for another sync while CI is green.
This is a static re-check of review state and CI status; nothing was executed locally. I have read-only review controls, so this does not change GitHub's displayed review decision. A maintainer with write access needs to perform the final approval.
# Conflicts: # docs/en/transforms/llm.md # docs/zh/transforms/llm.md
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for keeping the documentation aligned while syncing with dev. I re-read the complete current seventeen-file diff and followed each changed statement into the parser, factory and runtime consumer. The earlier FakeSource-schema and Prometheus-default concerns remain closed. No new blocking finding was found, and the exact-head fork Build succeeds.
What problem this PR solves
- User pain: Incorrect dataset wiring, fake-source fragments, type widths and startup/save-mode descriptions lead users to rejected configurations or the wrong expectations.
- Fix approach: Correct the bilingual common-option, Kudu, Pulsar, Splunk, Prometheus and file-mode descriptions, and align the Chinese Fluss placeholder example with the two-part table identity.
- One-line summary: Make the documented configuration match the code that validates and executes it.
Example: The source fragment now uses FakeSource with schema.fields.id=int. It can construct its catalog table instead of failing immediately because schema is absent.
1. Code-change review
1.1 Core logic analysis
All seventeen changed Markdown files (+66/-33; full 367-line diff), including both language copies and the Fluss example, were read against the current base. The complete target-relative diff was read at a7bccba052851fdefd640c63d1982d2775355c53, not just the latest commit. Documentation only. The earlier LLM edits are already in the base and are not incorrectly counted as a current production change.
Before / after:
FakeSourceStream without schema / field_name shortcut -> FakeSource with explicit schema.fields.
Kudu INT8/16/32 all documented as INT -> TINYINT/SMALLINT/INT respectively.
Pulsar EARLIEST/LATEST + configurable subscription type -> all four startup modes, conditional reset/timestamp and client-default subscription type.
Prometheus retry ambiguity -> effective default 3, explicit 0 disables retries.
Fluss schema_name -> database_name for its database/table identity.
Complete relevant execution chain:
Job config -> ConfigParserUtil.isSimpleGraph (79): exactly one source/sink, at most one transform
-> simple graph permits default dataset IDs; complex graph (147) requires source/transform outputs and transform/sink inputs
-> ConnectorCommonOptions.PLUGIN_INPUT (66): List<String>, legacy fallback retained
-> MultipleTableJobConfigParser.parseSink (660): multi-input union only after checkProducedTypeEquals (600)
FakeSource -> FakeConfig.buildWithConfig (181/467) -> CatalogTableUtil.buildWithConfig (195): require schema -> field parser -> catalog table
Kudu source -> KuduTypeMapper.mapping (41-51): INT8/16/32 -> BYTE/SHORT/INT
-> KuduRowSerializer (83): narrow row values passed to Kudu addObject for matching target types
Pulsar factory (79-85) and per-table validation (293-305) -> startup mode cursor
-> SubscriptionStartCursor.ensureSubscription (45): preserve existing subscription, otherwise create earliest/latest; seek no-op
-> PulsarConfigUtil.createConsumerBuilder (101-105): subscriptionName only -> reader message-ID checkpoint/recovery
SplunkSourceFactory.optionRule (47) -> inherited HTTP PARAMS optional -> SplunkSourceParameter (57-63): map if absent, output_mode=json default, form encoding
PrometheusSink (69): getOptional(RETRY).orElse(3) -> unchanged remote-write retry behavior
GcsFileSinkFactory (62-63/141-142): expose/validate both save modes -> existing file-sink lifecycle
OBS/COS/BOS/Jindo-OSS factory rules: neither save-mode option exposed
FlussSourceConfig.getTablePath (117): TablePath.of(database,table) -> TablePlaceholderProcessor (43-59): database and schema resolve separately -> database placeholder retains the real Fluss namespace.
Key findings:
- The corrected FakeSource fragments contain actual schemas in both languages. They remain illustrative fragments requiring complementary job sections/service settings, not claimed executed jobs.
- The dataset-list and simple/complex graph descriptions match parser validation. Multi-input union retains the existing equal-produced-type requirement; it is not a promise that arbitrary schemas can be combined.
- Kudu narrow type names agree with both source mapping and sink serialization. Pulsar preserves existing subscription position and requires the documented conditional fields.
- Splunk option-rule optionality is clearly separated from the search needed for a meaningful export. The default output mode and form encoding come from the runtime, not merely an option declaration.
- GCS/Jindo-OSS save-mode rows reflect their different factory rules. Fluss has a database/table path with null schema, so the database-based placeholder is the usable example.
Community context: The retrieved non-Daniel input consists of the author's three correction notes, with no independent reviewer finding or maintainer approval to endorse or contradict. The previously reported missing FakeSource schema is still fixed. The effective Prometheus default is verified at the sink runtime read, so the earlier no-default wording remains rejected. The QIANFAN/provider discussion concerns the already-merged base edit and is not reopened as a finding in this smaller current diff. Daniel's prior technical approval on 004a2ef is historical; this is a fresh full assessment of a7bccba.
1.2 Compatibility impact
Fully compatible for existing valid data and configuration. No public API, configuration name/default, wire protocol or checkpoint format change. No migration or incompatible-changes entry is needed.
1.3 Performance / side effects
The production cost and ownership implications are described below. No production CPU, allocation, GC, network, lock, retry, idempotency or resource ownership changes. The snippets describe existing type validation, retry budgets, save-mode behavior and multi-input restrictions; they do not change them. No credentials or new service endpoint were introduced.
1.4 Error handling and logging
The existing exception and logging boundaries remain in place. The FakeSource snippets now satisfy the actual missing-schema check. Splunk docs distinguish validation from meaningful request content. No exception/logging behavior is modified or advertised as newly fixed.
No blocking findings. Previous numbered findings are closed as described above; no new formal issue is raised.
2. Code-quality assessment
2.1 Code conventions
Existing Markdown tables/option names and paired language structure are retained. No new production method/field requires a contract comment. The scoped whitespace check produced no entries.
2.2 Test coverage and stability
Test stability: Not applicable; no UT/E2E code is changed. No local build, unit/integration test, container or service was run. Static checks read the complete diff, current parser/factory/runtime paths and the changed examples. Scoped git diff --check is clean. Kudu/Pulsar/Splunk/Prometheus/GCS/Fluss services and documentation-site rendering were not exercised, and no successful sample execution is claimed.
Exact current-head fork evidence at a7bccba052851fdefd640c63d1982d2775355c53: Build 40207480815: completed/success. Apache required-check and review gates remain independent of the fork run. Queued/in-progress/cancelled is not success; the earlier-head result does not transfer to this head.
2.3 Documentation
English/Chinese common options, Kudu, Pulsar, Splunk, Prometheus and file save-mode changes agree. The Chinese Fluss database placeholder now matches the existing English example. Existing current source/schema rules, rather than speculative option support, are the basis for these descriptions.
3. Architectural soundness
3.1 Solution quality
A focused correction to documentation at the relevant options/examples; no runtime redesign is needed.
3.2 Maintainability
Explicit schema fragments and the distinction between factory declarations and runtime defaults make future review easier. Keep the same-produced-type restriction in mind when expanding multi-input examples.
3.3 Extensibility
Existing option pages and tables are sufficient; no new abstraction or cross-module implementation is introduced.
3.4 Historical compatibility
The stated behavior correction preserves existing schemas and serialized state. No automatic state migration is introduced.
4. Findings summary
| No. | Finding | Location | Severity |
|---|---|---|---|
| - | No new blocking findings; prior schema/default issues remain closed | Changed documentation | None |
5. Merge conclusion
Conclusion: Can merge
- Blocking items: No source/documentation blocker from Daniel. Confirm required Apache checks for this exact head and obtain effective write-capable maintainer approval.
- Non-blocking recommendations: None required in this round. Keep external service prerequisites and equal-schema union restrictions explicit when expanding examples.
My technical conclusion supports merging this current version. The exact-head fork Build succeeds; older review/CI results were not reused to establish that result. No alternative runtime implementation or unrelated dependency fix is needed.
Compare against dev: diverged, ahead 5 / behind 1, 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-12941, complete diff and source call-chain reads cited above. No runtime verification was claimed.
Yes, I am contributing to Apache SeaTunnel.
What documentation issues were found
While auditing connector, transform and common-options documentation against the actual Java source code (option definitions, factory
optionRule()s, type mappers and option-consumption code), I found the following real inaccuracies:Pulsar source (en + zh) — The FAQ claimed only
EARLIEST/LATESTstartup modes are supported, contradicting the option table andPulsarSourceOptions.StartMode(EARLIEST,LATEST,SUBSCRIPTION,TIMESTAMP). It also claimed consumers join with configurable subscription types (e.g.Failover/Exclusive), but no such option exists —PulsarConfigUtil.createConsumerBuilderonly sets the subscription name.Kudu source & sink type mapping (en + zh) — Source table claimed
INT8/INT16/INT32 → INT;KuduTypeMapperactually mapsINT8 → TINYINT,INT16 → SMALLINT,INT32 → INT. Sink table claimedINT → INT8/INT16/INT32;KuduRowSerializerpasses values through unchanged, so the Kudu client's exact boxed types meanTINYINT → INT8,SMALLINT → INT16,INT → INT32.Splunk source (en + zh) —
paramswas marked required, butSplunkSourceFactory.optionRule()lists it as optional andSplunkSourceParameternever validates it. Also documented thatoutput_modedefaults tojson(set viaputIfAbsent).Prometheus sink (en + zh) —
retrywas documented with default3; the option is defined withnoDefaultValue()and the effective default is0(retries disabled).Fluss sink (zh only) — The zh "replicate CDC across databases" section claimed
${schema_name}resolves to the upstream database in a Fluss-to-Fluss topology and useddatabase = "sink_db_${schema_name}". Fluss identifiers carry no schema (TableIdentifier.of(..., database, null, table)), so${schema_name}resolves to an empty string; the section now matches the already-correct en page and uses${database_name}.Sink common options (en + zh) —
plugin_inputwas documented asString, butConnectorCommonOptions.PLUGIN_INPUTis alistType()option; a single name or an array is accepted and multiple names are unioned by the Zeta sink parser. The en-only "Important note" claimed a nonexistentplugin_input→plugin_outputrequirement (and contradicted the correct closing note), and the examples used the invalid plugin nameFakeSourceStreamplus a nonexistentfield_nameoption.Source common options (en + zh) — Same invalid
FakeSourceStreamplugin name, and the same false "must set plugin_input" note (a source never takesplugin_input).Sink write modes (en + zh) — The file-connector save-mode support table missed
GcsFile(its factory exposesschema_save_mode/data_save_mode) andOssJindoFile(does not expose them); the troubleshooting section also omittedSmbFileandGcsFilefrom the supported list. All entries re-verified against each*SinkFactory.LLM transform (en + zh) —
api_keywas marked unconditionally required, butLLMTransformFactorymakes it conditionally required (OPENAI/DOUBAO/MICROSOFT) and unused forCUSTOM, matching the page's own CUSTOM note.I also evaluated adding the shared
process_batch_size/model_retry_*/model_request_timeout_msoptions to the LLM/Embedding pages, but verified inLLMTransform/EmbeddingTransformruntime code that these are not consumed by those transforms (LLM infers row-by-row; embedding batches viasingle_vectorized_input_number), so documenting them would be misleading and they were intentionally left out.What was changed
Only documentation corrections — no code changes. Every fix was verified against the corresponding source file before editing.
Files updated (19 files, en + zh kept in sync)
docs/{en,zh}/connectors/source/Pulsar.mddocs/{en,zh}/connectors/source/Kudu.md,docs/{en,zh}/connectors/sink/Kudu.mddocs/{en,zh}/connectors/source/Splunk.mddocs/{en,zh}/connectors/sink/Prometheus.mddocs/zh/connectors/sink/Fluss.mddocs/{en,zh}/transforms/llm.mddocs/{en,zh}/connectors/common-options/source-common-options.mddocs/{en,zh}/connectors/common-options/sink-common-options.mddocs/{en,zh}/connectors/common-options/sink-write-modes.mdWere English and Chinese docs both checked?
Yes. Every issue was checked in both locales and fixed in both where present. The Fluss
${schema_name}issue existed only in the zh page (en was already correct), and the false sink-common-options "Important note" existed only in en (zh has no such note); both were handled accordingly.Duplicate PR check (last 7 days)
I checked open PRs from the last 7 days by author and community before starting: #12932 (Zeta REST/engine/transforms/FAQ), #12911 (Kafka/Hive/Jdbc/ClickHouse/Doris/StarRocks/MongoDB/TDengine/…), #12865 (DynamoDB/Elasticsearch/Http/JDBC dialects/…), #12813 (Sls/Snowflake/Redis/CDC/…), #12771 (CDC/InfluxDB/S3/Gcs/Feishu/…), #12730 (file sinks/Iceberg source/LocalFile/…) and community PRs #12859, #12856. None of them touches Pulsar, Kudu, Splunk, Prometheus, Fluss sink, llm transform, or the common-options / sink-write-modes pages edited here, so this PR does not overlap with them.
Verification
KuduTypeMapper,KuduRowSerializer,SplunkSourceParameter,SubscriptionStartCursor,GcsFileSinkFactory, etc.) before editing.markdown-link-check@3.8.7 -c .dlc.jsonon all 19 changed files: 0 failures../mvnw spotlesswas not run because this PR contains no Java changes (spotless is configured for Java only).