DanielLeens commented on issue #13774:
URL: https://github.com/apache/seatunnel/issues/13774#issuecomment-7278042732

   Classification: F / API multi-table sink validation ordering.
   
   Thank you for tracing the ordering precisely. Current dev has the same 
boundary: the Flink processor creates and prepares each table sink and applies 
its save mode before it calls `tryGenerateMultiTableSink`; the shared factory 
validation then runs inside `FactoryUtil.createMultiTableSink`. Therefore the 
positive-count rule in #13238 is necessary, but it does not by itself guarantee 
rejection before per-table setup or save-mode side effects.
   
   Please keep #13238 as the shared factory-rule lane. Its current head is 
still under review with a failed Build, so this follow-up should not be mixed 
into that PR or bypass its final rule contract. Once that boundary is settled, 
a focused follow-up should:
   
   1. identify every engine entry point that can construct a multi-table sink 
and validate the raw multi-table configuration before any per-table sink 
preparation or save-mode call;
   2. reuse the same option definition and positive-bound rule at the early 
entry point and at the factory boundary, rather than duplicate a second range 
check;
   3. preserve the optional integer contract, default `1`, valid create/restore 
behavior, single-table behavior, and unsupported-connector paths; and
   4. add entry-point regression tests for `0` and negative values that prove 
neither preparation nor save-mode callbacks run, plus omitted, `1`, and a 
larger valid value, option discovery, and restore coverage.
   
   Please link the focused PR here after the #13238 contract is resolved, with 
the exact engine entry points and the negative side-effect tests. This is an 
ordering and visibility follow-up, not a reason to weaken or replace the 
factory validation.


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