DanielLeens commented on PR #13700: URL: https://github.com/apache/seatunnel/pull/13700#issuecomment-7247221804
### Implementation Notes and Trade-offs Head: cf87f6262a4a7308f0728155e9fd22d63fa5118c Nine native read contracts require three response/continuation models: seven paged arrays, one unpaged route array and one statistics object. Statistics receives only from/to; templates receives its configured scopeType. A shared raw-page limit/offset model for all nine was rejected because it would invent unsupported parameters and misread report objects. Full raw array size drives pagination, preserving continuation when local event filtering removes a full page. Only EventDate is filtered through a half-open interval; native inclusive upper bounds are excluded locally without discarding finer fractional timestamps inside the window. Directories remain full reads. Report lower bounds are independently configurable and validated against the frozen upper; an invalid report window fails before HTTP instead of generating a false zero report. Event transaction/message identifiers are not unique event IDs, so identity is nullable and duplicate events remain visible. The single active reader owns transport work outside checkpoint locks and publishes bounded chunks under the output lock. State stores resource index, fixed-step offset, page count, publication row, frozen upper and a canonical complete-response fingerprint. Partial restore compares the complete raw response, including excluded events, before suffix output; JSON object-key reordering is accepted. Changed content or row ordering fails. Committed offset/resource transitions and terminal restore avoid replaying completed work. Account-changing credential rotation is rejected rather than silently crossing scopes; no raw key, certificate or data enters the split. The generic HTTP source was considered but does not carry these resource-specific shapes, event/report selection and exact replay state. An independent module with the existing HTTP/Jackson dependencies keeps those semantics out of shared engine/API code. Fixed HTTPS origin, source-local trust, retained hostname checks and bounded wire/decoded/parser limits constrain credential and resource exposure. All requests are read-only; eligible transient GET failures retry within finite attempt/wait/deadline budgets, while authentication failures, redirects and invalid successful responses stop without blind replay. Actual validation: scoped Java 11 Spotless apply/check; source and exact path/hash/deletion/ASF/whitespace checks; 22 type Javadocs; all 16 option tables; dependency, SPI, packaging and checkpoint contracts. Seventeen engine E2E methods and seven packaged modes were authored, including three engine savepoint paths. These tests were not run locally. Compilation, runtime and live-provider interoperability remain pending GitHub CI. Native permissions, retention and mutable offset lists remain external constraints; the bounded scan is not a transaction snapshot or cross-job watermark. Subsequent CI/comment maintenance is handed off without a merge or production-readiness 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]
