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.
sdk-test-java
Compatibility tests for Floci using the AWS SDK for Java v2 (2.31.8).
Runs 352 tests across 17 test classes against a live Floci instance — no mocks.
Services Covered
| Test class | Description |
|---|---|
SsmTest |
Parameter Store — put, get, path, tags |
SqsTest |
Queues, send/receive/delete, DLQ, visibility |
SnsTest |
Topics, subscriptions, publish, SQS delivery |
S3Test |
Buckets, objects, tagging, copy, multipart, batch delete |
DynamoDbTest |
Tables, CRUD, batch, TTL, tags, streams |
DynamoDbScanConditionTests |
Scan filter and condition expressions |
LambdaTest |
Create/invoke/update/delete functions |
IamTest |
Users, roles, policies, access keys |
StsTest |
GetCallerIdentity, AssumeRole, GetSessionToken |
SecretsManagerTest |
Create/get/put/list/delete secrets, versioning, tags |
KmsTest |
Keys, aliases, encrypt/decrypt, data keys, sign/verify |
CloudWatchTest |
PutMetricData, ListMetrics, GetMetricStatistics, alarms |
CloudFormationVirtualHostTests |
Virtual host style S3 access via CloudFormation |
ApigwSfnJsonataCrudlTests |
API Gateway + Step Functions JSONata CRUDL integration |
ApiGatewayV2WebSocketAndExtendedOpsTest |
API GW v2 WebSocket APIs, Update ops, Route/Integration Responses, Models, Tagging |
Ec2Tests |
EC2 instances, VPCs, security groups, subnets |
AppSyncTest |
GraphQL API CRUDL, data sources, resolvers, functions, types, API keys, tags, schema validation |
EcsTests |
ECS clusters, task definitions, services |
Adding a New Test
Create a standard JUnit 5 test class in src/test/java/com/floci/test/. Tests run against a live Floci instance using real AWS SDK clients.
Requirements
- Java 17+
- Maven
Running
# All tests
mvn test -q
# Specific test class
mvn test -Dtest=S3Test
# Via just (from compatibility-tests/)
just test-java
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_ENDPOINT |
http://localhost:4566 |
Floci emulator endpoint |
AWS credentials are always test / test / us-east-1.
Docker
docker build -t floci-sdk-java .
docker run --rm --network host floci-sdk-java
# Custom endpoint (macOS/Windows)
docker run --rm -e FLOCI_ENDPOINT=http://host.docker.internal:4566 floci-sdk-java