mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(redshift): decode Extended Query wire messages * feat(redshift): track Extended Query statements and portals * feat(redshift): coordinate Extended Query backend responses * refactor(redshift): share S3 COPY and UNLOAD transfers * feat(redshift): execute S3 transfers through Extended Query * fix(redshift): retain next-cycle pipelined portals * feat(redshift): intercept Extended Query statements * test(redshift): cover Extended Query JDBC compatibility * test(redshift): cover Extended Query SDK compatibility * docs(redshift): document Extended Query interception * feat(redshift): implement extended query execution handling in BackendResponseCoordinator and update related classes * feat(redshift): enhance ExtendedS3Exchange with client synchronization handling * fix(redshift): synchronize extended COPY failures * fix(redshift): tolerate backend ownership fragmentation * fix(redshift): forward extended query flush frames * fix(redshift): abort backend copy on unload failure * fix(redshift): preserve later extended query mutations * fix(redshift): return ready state after copy failure * test(redshift): cover later sync cycle rollback * fix(redshift): preserve independent mutations when rejecting a pipelined mutation ExtendedQuerySession.rejectFrom() restored the whole statements/portals map back to the rejected mutation's "before" snapshot and truncated the journal to the end, discarding any later, independent mutation that happened to run first. The coordinator already rejects one pipelined mutation at a time in journal order, so this only ever needs to undo that one mutation's own effect. Each journal entry now also records its own "after" snapshot at creation time, since reconstructing it later from the next entry's "before" or from the live maps goes stale once an earlier reject's cascading portal cleanup has already touched a key this mutation never itself changed. * fix(redshift): forward the real ReadyForQuery after a COPY/UNLOAD failure readClientSync(client) called the two-argument overload without its Flush-forwarding OutputStream, which did not compile. Every error branch in the Extended Query COPY/UNLOAD path sent CopyFail and Sync to the backend but never drained or forwarded the backend's resulting ReadyForQuery: the client waited on a frame nobody ever read off the wire. drainReadyForQuery already existed for exactly this but was never called. Wire it into every COPY and UNLOAD error branch.