DanielLeens commented on PR #13531: URL: https://github.com/apache/seatunnel/pull/13531#issuecomment-7235284460
### Implementation Notes and Trade-offs Head: `bf2520c9cc9f58738fce20bbb8308cc3c6bfc5d8`. The original parser-retention, decoded-page checkpoint-lock, lifecycle/state documentation and convention findings are source-closed. The fourteen-file correction is confined to the new 100ms connector, its EN/ZH guides and dedicated tests/config. No POM, shared engine/API/HTTP implementation, registration, unrelated connector or original resource behavior changes. Source review supports human SOURCE review while exact-head CI remains outstanding; this is not acceptance, approval or a merge statement. Each successful response now uses a fresh copied parser factory. Interning is disabled, while canonicalization and native byte/charset detection remain enabled. This avoids both factory-root symbol accumulation and global InternCache retention without changing malformed UTF-8 into replacement characters. Existing strict JSON, precision, compressed/decoded byte caps, retry/deadline, TLS/privacy and cancellation behavior remain. Bounded per-response mapper construction is the cost; no global parser policy or dependency upgrade is needed. Complete page validation/materialization and prefix hashing happen outside checkpoint/state monitors. Each poll collects at most one row, atomically updating accepted-row count/hash under collector→state locking; only the last accepted row advances the cursor/phase. The v2 state holds a fixed count and rolling digest of all five exact output columns, copies/resets both consistently, and stores no decoded payload or credential. Restore refetches and validates the saved prefix before skipping it; changed/reordered/missing prefixes fail before new output. It does not replay a committed prefix or advance early. This unreleased source explicitly targets accepted-prefix v2 and does not support transient pre-merge page-only state. The original upper bound, unfiltered parent lookup, resource order/phase rules, same-account request plan and analytics lifetime remain. A partially accepted first analytics page retains the first-request clock even without a cursor and is subject to the same 24-hour guard. Refetching an un-cursored first page cannot recreate an immutable remote snapshot: an unchanged accepted prefix is verified, while its unaccepted suffix can change. Provider lists can still duplicate across phases or replay after the last completed checkpoint. A single slow collector remains an engine/backpressure boundary; the change removes entire-page lock amplification. All nine existing IT bodies/helpers, three original configs and eight resource route/validation behaviors are preserved. Eleven Zeta methods are now authored. New tests cover exact long-key/Unicode/decimal payloads and malformed UTF-8, plus actual decoded-page throttling with checkpoint progress, cancel/retained-checkpoint restore, exact 200-ID output and changed-prefix rejection. The early committed-prefix assertion would fail old whole-page output; no-request alone is not the oracle. The long-key compatibility test is not a heap/GC proof, and cancellation is not mislabeled as a savepoint API result. Leaf formatting and static syntax/API/body-identity/file/registration checks passed within their scopes; all fourteen pushed hashes match the reviewed candidate and full whitespace check passes. Exact-head [Build run 46115752130](https://github.com/DanielLeens/seatunnel/actions/runs/46115752130) was queued at the 02:19 EST refresh. No local compilation, UT/IT/E2E, packaging, Docker/service/job, heap/GC or OOM probe ran. Actual eleven-case Zeta and build/artifact evidence remain CI gates; no runtime acceptance or merge claim is made. -- 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]
