DanielLeens commented on PR #13523: URL: https://github.com/apache/seatunnel/pull/13523#issuecomment-7236408025
## Implementation Notes and Trade-offs Applicable head: `677f29d377db693d73948e7ea500c1d204824e8f`. Previous head: `65dfc5cf2206241069dae4b40aa8f587b01bd085`. This supersedes the current-status portion of the older implementation description; producer note7232193364 remains historical and unchanged. The [previous complete review](https://github.com/apache/seatunnel/pull/13523#pullrequestreview-6096571869) correctly blocked the previous head for response-parser cache ownership and cumulative convention gaps. The new connector-only correction changes six Java files (+289/-20), preserving the earlier accepted-prefix repair and all old assertions. It isolates every bounded byte response in a fresh native Jackson2.15.4 mapper/factory copy and disables interning on the settings template. Native canonicalization/BOM/strict malformed-byte behavior and exact decimal settings remain; binary state serialization and the static authentication request builder remain unchanged. Factory-root and global intern-cache lifetimes no longer accumulate response names. This is an ownership proof, not a heap measurement or a universal process-memory guarantee. The preceding prefix repair prepares/validates pages off locks and accepts one row per poll. Count/hash advance atomically only after successful collect; cursor/terminal advancement occurs with the last accepted row. Unreleased v2 state hashes all 4 output Strings with length/null framing and exact UTF16 code units, verifies a refetched accepted prefix before skip, and fails changed/missing prefixes. It preserves accepted-row resume instead of silently replaying an extra committed prefix. Provider mutation/cursor expiry and replay after the latest completed checkpoint remain external recovery limits; no immutable snapshot or source-only exactly-once Sink claim. The smallest and best boundary is this connector’s parser and polling ownership. Global mapper/logger changes, disabling byte canonicalization, truncating/rejecting valid long names, increasing engine timeouts or changing shared state/API/POMs were rejected because they broaden compatibility or leave the root cause. Meaningful multiline comments and intact method grouping complete the contribution conventions; no comment-only tests are added. Existing webhook Sink, masked credentials, quiet direct HTTP, token refresh, bounded retries and sanitized diagnostics are preserved. The added modest actual-reader HTTP case checks distinct 4096-character keys, exact all-4-column values, UTF16BE/UTF8 BOMs and malformed UTF8 rejection with no extra output/checkpoint progress. It can pass the old cache-retaining version; it protects corrective compatibility, not old-leak failure or retained-heap size. The existing 100-row/2rps Zeta regression uses actual isolated PostgreSQL XA committed receipts, a newer checkpoint before full-page completion, retained cancel/new-job restore, exact stable rows and changed-prefix failure. Its old-version failure oracle is the 5..99 committed rows within 20s versus an approximately 50s old whole-page poll. Existing native XA job/subtask recovery semantics are inspected, not assumed upgraded; the test owns a fresh single-table DB per cycle and does not certify cross-table cleanup. Preservation: all 26 original IT/helper bodies and 13 fixture functions remain; latest correction retains 93/94 old Java bodies byte-for-byte and changes only the intended parse adapter. All previous component assertions, Source/Sink schema/options/transport/state and POMs remain. Cumulative scope is 13 files (+3068/-0); no unrelated dev merge, shared API/engine or dependency change. Validation: recorded scoped product/HTTP-E2E Spotless apply/check passed, plus source/Java/Python/XML/hash/body-preservation/diff checks. Current remote head and pushed file hashes were read back. No local compilation/test/package/Docker/engine/service/provider/heap/GC/OOM execution or real credentials. Exact-head [run46123326413](https://github.com/DanielLeens/seatunnel/actions/runs/46123326413) is queued with no Tests-run outcome. Human SOURCE review can proceed after the complete corrected-head review; runtime/packaging/provider acceptance and merge gates remain pending. No approval/merge authorization is implied. -- 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]
