SEZ9 commented on PR #13233:
URL: https://github.com/apache/seatunnel/pull/13233#issuecomment-7180096121

   Thanks @nzw921rx for the reproductions on `2444c85`. This reply covers only 
the items from the earlier review, and your results confirm three of them.
   
   **Mutable env shared with factories.** Your two-source case (the second 
source planned at 8 while `JobConfig` still reports 2, and the nested 
`custom_parameters` removal reaching `JobConfig`) is the problem raised 
earlier: the planner hands its live `envOptions` to every factory, and 
`TableFactoryContext` stores it as-is. I agree with the fix you propose:
   - Build one deeply immutable env snapshot per job and share it across 
factories.
   - Add a regression test showing that both sources keep their configured 
parallelism and that nested values cannot be changed through `getSourceMap()`.
   
   **Error sink on Zeta.** Your `region = east` case, where the same sink 
factory gets an empty env from `DefaultErrorSinkWriter` on `ROUTE` and fails in 
`open()`, matches the earlier point about the env-less `createAndPrepareSink` 
shim. Either option you describe works:
   - Preferred: pass the job snapshot through this path as well.
   - If that is deferred: add the exception to the "Limitations" list in both 
the EN and ZH guides, which currently present Flink/Spark as the only gap, and 
add a focused test.
   
   **Docs snippet.** The compile failure you saw in both guides matches the 
earlier point. Please fix the Java example in EN and ZH so it compiles, and 
stop listing `MultiTableSinkFactory` as something plugin authors implement.
   
   Three earlier points still stand:
   - **Empty env from the shims.** A plugin cannot tell "the engine did not 
supply env" from "the user did not set the key", so env-dependent plugins 
degrade silently on Flink and Spark. Please make the two cases distinguishable, 
or say how you plan to handle this.
   - **Savepoint restore.** The branch that now carries env into 
`ChangeStreamTableSourceFactory#restoreSource` has no test. Please add one 
alongside the fresh-create assertions.
   - **Javadoc.** Please make it consistent across the new public API. The 
source overloads have a block with parameter tags only, the sink overload has 
an inline comment, and the multi-table sink, transform and context-constructor 
additions have none.
   
   <!-- streview-comment:2620 -->


-- 
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