Files
floci/docs/services
Vũ Thế Huy fd37e109f8 feat(firehose): deliver staged Redshift batches with single-attempt COPY (#6006)
* feat(firehose): deliver staged Redshift batches with single-attempt COPY

A flush stages the batch in the intermediate S3 location, then runs COPY against the cluster proxy over JDBC simple-query mode without an IAM role. The load runs on its own thread so that slow COPY queries do not hold the shared flush executor or PutRecord callers, and failures are logged with the staged batch kept in S3.

* fix(firehose): address review comments on Redshift single-attempt COPY delivery

- Drain buffers before shutting down the Redshift delivery executor on Firehose shutdown and log dropped queued tasks.

- Catch RejectedExecutionException in deliverRedshiftBatch to prevent staged records from returning to the buffer.

- Extract DatabaseSecretCredentials helper in core.common to deduplicate Secrets Manager credentials parsing across RDS Data, Redshift Data, and Firehose.

- Extract RedshiftConnections test helper for waitForConnection and use DockerAvailability.isAvailable() in FirehoseRedshiftDeliveryIntegrationTest.

- Update docs and Javadocs to remove outdated references to retries and shared flush threads.

* fix(firehose): wait for queued Redshift COPY delivery before shutdown and log secret parse errors

* refactor(firehose): deduplicate dropAndLogQueuedTasks helper on shutdown
2026-10-21 13:40:53 -04:00
..
2026-08-21 00:09:04 -04:00
2026-10-21 06:47:06 -04:00