DanielLeens commented on PR #13532: URL: https://github.com/apache/seatunnel/pull/13532#issuecomment-7235803761
### Implementation Notes and Trade-offs Head: `89e530493bd0c25d1d1473928cf759b42b55e8f7`; corrected original head: `242ff96d98d45204f9ef68fa7068f50d901b1011`. This supersedes the initial implementation note's page-only recovery description and reconciles all four findings in the [complete original review](https://github.com/apache/seatunnel/pull/13532#pullrequestreview-6096229575). The static Jackson mapper is now only a settings template. It disables field-name interning and supplies a fresh mapper/factory copy for each response, closing cross-response symbol retention and the global InternCache route while preserving byte canonicalization, strict malformed-UTF-8 rejection, exact decimals and all existing JSON/body/header limits. Disabling canonicalization was rejected because the pinned parser's Reader-based fallback would change decoding behavior. No shared JSON/global setting is changed; bounded per-response construction is the deliberate cost. The reader validates the complete response, parent/shape/bucket/cursor/cutoff rules and accepted-prefix hashes outside checkpoint/state locks. Each poll accepts at most one row, then commits its progress under the collector/state boundary and returns to the engine handoff. The last row advances the cursor/parent/phase and resets the prefix atomically; discovery prepares a detached bounded position before atomic publication. One individually blocked collect remains an engine boundary, so this is not a universal checkpoint-latency guarantee. First-release state version 2 adds only accepted count and a fixed-size chained SHA-256 digest of the exact four output columns. Strings use null/length framing and exact UTF-16 units; company/nullable user IDs use typed long framing. Copy/reset paths retain both fields together. Restore refetches the saved current page, reapplies original validation/filtering, verifies the whole accepted prefix and only then skips it. Changed, reordered or missing accepted data fails before new output. Count-only skipping would silently accept changed data; yielding without prefix state would replay committed rows. Whole-page persistence or shared engine/state changes were unnecessary. No permanent compatibility branch is added for earlier unmerged development state. Unaccepted provider data/cursors remain mutable; no new watermark, inactive-user filter or frozen snapshot is claimed. Important owner/state/lifecycle comments, multiline Javadocs, ordinary imports and equivalent method ordering are completed. All 37 original test/helper bodies, including 11 original templates, and all ten original Python functions remain unchanged. Two new Zeta templates bring the authored total to 13: transactional committed-prefix checkpoint/cancel-retained-restore with exact 100-row output and changed-prefix rejection; and moderate long-key value/numeric compatibility plus malformed-UTF-8 rejection. The old page-wide critical section cannot meet the new shorter committed-prefix checkpoint oracle. Long-key compatibility is not a heap/OOM test. Exactly one test-scoped dependency on the existing FileLocal connector is added to this dedicated E2E POM so selected-module CI produces/stages its receipt-sink JAR. Console output cannot establish checkpoint-committed rows. No production POM/dependency version, shared API/HTTP/engine behavior, other connector/Sink, registration or option/default changes accompany the correction. The existing registration and all twelve API resources remain. Official user-status defaults are inconsistent; the repair preserves provider defaults rather than inventing a filter. Both leaf formatting checks, source/hash/body preservation, Python AST/XML, registration and diff checks passed; the pushed head matches the reviewed source plus that dependency. No local compile, UT/IT/E2E, packaging, Docker, runtime/live-account or OOM validation ran. Exact-head Build is queued; 13 authored methods and signal success are not executed acceptance. All four original findings are source-closed only at this head. Human source review can proceed while CI is pending; runtime/package/provider validation, required human review and merge authorization remain separate. -- 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]
