DanielLeens commented on PR #13527:
URL: https://github.com/apache/seatunnel/pull/13527#issuecomment-7234576491

   ### Implementation Notes and Trade-offs
   
   Head: `39556efbe52d7fcaab7b6efc2d02f8b72f78cf50`.
   
   This correction addresses the complete review of original head 
`c8d7b4a507568e1b746bcca055fda0fc152df052`.
   
   JSON now has connector-owned, typed admission before tree allocation and an 
independent exact output-byte limit. Lazy iterative frames charge every logical 
occurrence, including repeated shared objects and overwritten map entries. 
Allocation checks repeat during conversion. Schema validation, composite 
conversion and container output are iterative; they avoid recursive schema 
expansion and recursive tree serialization without imposing an arbitrary fixed 
depth limit. Existing public native scalar converters preserve 
numeric/temporal/null behavior. ObjectNode/ArrayNode construction preserves 
compact scalar map keys, existing-value reuse, normalized-key overwrite 
behavior and insertion order. Rejected values are never rendered through a 
row-stringifying exception wrapper.
   
   A capped output stream alone was rejected because it cannot contain 
allocations that happen before output. Counting shared objects only once misses 
repeated expansion; a fixed depth cap would narrow valid deep input. A shared 
JSON rewrite would broaden compatibility and regression scope across unrelated 
connectors. The chosen local iterative boundary costs extra traversal and 
maintenance, while reusing the existing public scalar API and retaining native 
output semantics.
   
   The effective body limit also caps conversion work, so extremely large 
inputs or repeated overwritten/normalized values may be rejected even when 
their final JSON would be small. Both guides explain this resource boundary. 
TEXT/BINARY encoding, synchronous acknowledgement, checkpoint ordering, finite 
network deadlines, 429-only retries, lost-acknowledgement behavior and recovery 
duplicate caveats are retained.
   
   Application-property values now follow Microsoft's documented HTTPS 
alphabet. Unsupported whitespace, slash and colon fail before network use. 
Values are neither trimmed nor silently encoded. Both guides and option text 
were corrected, and the independent HTTPS fixture validates the alphabet and 
exact accepted punctuation. New shell-sensitive test parameters are quoted 
because the existing test harness joins CLI arguments through `bash -c`.
   
   All eleven original E2E method bodies and all four original job 
configurations are unchanged. Seven component regressions were authored, 
including real-writer tracking-map/row progress checks that distinguish early 
rejection from a post-conversion byte check, plus nested payload fidelity, 
compact numeric keys/overwrite, deep/shared schemas, native numeric flexibility 
and exact escaped output limits. Two additional installed-Zeta HTTPS cases 
cover JSON budget rejection before POST and property rejection/exact valid 
metadata. These counts describe authored coverage, not executed results.
   
   The correction changes only the dedicated connector, its 
tests/fixture/configuration and English/Chinese guides. No POM, shared 
serializer, engine/API, registry, distribution or existing connector behavior 
is changed. The transport client's executable method bodies remain identical; 
its changes are invariant comments and equivalent method ordering.
   
   Production and E2E leaf Spotless apply/check, diff checks, Java syntax 
inspection and preservation/hash checks passed. No local compilation, 
component/E2E execution, packaging, Docker, job, OOM probe or live Azure 
operation was run. Generated SPI, artifacts, real engine execution and 
live-service acceptance remain separate validation gates. The corrective commit 
was pushed and read back at the head above. Exact-head GitHub Build is queued; 
the source is eligible for human review, with no runtime-acceptance or merge 
claim.
   


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