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

   ### Implementation Notes and Trade-offs
   
   Head: 5d896b87b34c48ef60188d292f7efc5d41bf4e1c
   
   The current official API declares eventee.com/public/api/v1 and an 
event-scoped Bearer token. A separately supplied event ID, arbitrary base URL 
or undocumented compatibility fallback was rejected because it is unnecessary 
for this contract and could misroute credentials. Only read-only GET requests 
are issued; object-provided URLs are not followed, and initialization does not 
spend quota on an extra account check.
   
   Seven output families are arrays in one native content response. Repeating 
that request once per family was rejected because it spends quota repeatedly 
and can observe inconsistent program versions. The source instead validates and 
publishes selected arrays from one response, then reads the independent 
partner/participant root arrays only when selected. There is no invented 
pagination or final empty-page probe. The combined selected content count has a 
single response budget, preventing the effective limit from multiplying by the 
number of selected families.
   
   The generic HTTP source does not provide this multi-array publication state 
and exact whole-response replay. A dedicated artifact keeps native behavior 
outside shared engine/API code while reusing existing HTTP/Jackson versions. 
Response-group positions, publication row offsets and canonical raw-response 
fingerprints allow partial replay across selected array boundaries. The 
fingerprint includes unselected arrays and additional metadata, so changed 
provider content fails before suffix output. Object-key reordering is accepted, 
state is copied on assignment/snapshot, completed groups are not read again and 
terminal restore sends no request. Tokens, raw records and certificates are 
excluded from split state.
   
   Native numeric identities are normalized without double rounding, with 
precision/scale checks before exponent expansion. Participant email remains an 
opaque native identity: the official API permits anonymous/deleted-account 
placeholders without an @ character. Enforcing a contact-address validator or 
deduplicating by email was rejected because either would discard valid returned 
records. Complete payloads retain native participant IDs and all nested fields.
   
   The official quota contract distinguishes exhausted HTTP 400 responses 
through X-RateLimit-Remaining: 0. Only one unambiguous zero header enables that 
retry, with a conservative minimum 60000 ms wait and both wait/operation 
budgets. Treating every 400 as retryable would hide permanent errors; ignoring 
the native zero header would fail an otherwise recoverable quota case. 
Additional transient transport/status retries remain bounded, while 
authentication failures, redirects and invalid successful responses are not 
blindly replayed.
   
   Actual validation: scoped Java 11 Spotless apply/check, source self-audit, 
exact path/hash/deletion/ASF/whitespace/XML checks, 22 type Javadocs, 10 option 
tables and registration/state contracts. Eleven engine methods and eight 
packaged modes are authored, including three real savepoint paths. None ran 
locally. Compilation/runtime remain pending GitHub CI and live-account 
interoperability has not been established. This is an initial implementation 
submission; subsequent CI/comment maintenance is handed off after the initial 
readback. It is not a merge, production-acceptance or transaction-snapshot 
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