mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
* feat(firehose): apply the Lambda transform to buffered records A flushed buffer now goes to the Lambda processor's function as a single invocation, and what the function returns is what reaches the destination. Ok delivers the returned data, Dropped leaves no trace, and every other outcome routes that record to the error output while the rest of the batch still delivers: ProcessingFailed, a record the function did not return, a record id returned twice, and an Ok carrying no data. A function-level error is retried NumberOfRetries more times and then fails the whole batch as Lambda.FunctionError; a response the function returned successfully is final however malformed it is, matching what AWS reports for a response naming no records at all. The transformation runs ahead of data format conversion, so a stream configured for both converts what the function returned, and the "not applied yet" warning the configuration used to log is gone. * fix(firehose): clamp a NumberOfRetries wider than a long, and heal a stored Enabled Long.parseLong threw for a NumberOfRetries too wide for a long, which the catch treated as "not a number" and answered with the default 3. A larger retry count than one that clamps therefore got fewer attempts: 2147483648 delivered 101 attempts where 999999999999999999999 delivered 4. Reading it as a BigInteger keeps the clamp meaningful at any magnitude. A ProcessingConfiguration persisted before Enabled was defaulted never passes canonicalizeProcessors again, so the describe path now fills it, the way that path already self-heals partial BufferingHints. Only Enabled: the parameters AWS defaults include RoleArn, which a read must not inject from whatever role is current by then.