Releases: lensesio/stream-reactor
Releases · lensesio/stream-reactor
Stream Reactor 8.1.18
🚀 New Features
Sequential Message Sending for Azure Service Bus
- Introduced a new KCQL property:
batch.enabled
(default:true
). - Users can now disable batching to send messages sequentially, addressing specific scenarios with large message sizes (e.g., >1 MB).
- Why this matters: Batching improves performance but can fail for large messages. Sequential sending ensures reliability in such cases.
- How to use: Configure
batch.enabled=false
in the KCQL mapping to enable sequential sending.
Post-Processing for Datalake Cloud Source Connectors
- Added post-processing capabilities for AWS S3 and GCP Storage source connectors ( Azure Datalake Gen 2 support coming soon).
- New KCQL properties:
post.process.action
: Defines the action (DELETE
orMOVE
) to perform on source files after successful processing.post.process.action.bucket
: Specifies the target bucket for theMOVE
action (required forMOVE
).post.process.action.prefix
: Specifies a new prefix for the file’s location when using theMOVE
action (required forMOVE
).
- Use cases:
- Free up storage space by deleting files.
- Archive or organize processed files by moving them to a new location.
- Example 1 : Delete Files:
INSERT INTO `my-bucket`
SELECT * FROM `my-topic`
PROPERTIES ('post.process.action'=`DELETE`)
- Example 2: Move files to an archive bucket:
INSERT INTO `my-bucket:archive/`
SELECT * FROM `my-topic`
PROPERTIES (
'post.process.action'=`MOVE`,
'post.process.action.bucket'=`archive-bucket`,
'post.process.action.prefix'=`archive/`
)
🛠 Dependency Updates
Updated Azure Service Bus Dependencies
azure-core
updated to version 1.54.1.azure-messaging-servicebus
updated to version 7.17.6.
These updates ensure compatibility with the latest Azure SDKs and improve stability and performance.
Upgrade Notes
- Review the new KCQL properties and configurations for Azure Service Bus and Datalake connectors.
- Ensure compatibility with the updated Azure Service Bus dependencies if you use custom extensions or integrations.
Thank you to all contributors! 🎉
Stream Reactor 8.1.17
Feat/es suport pk from key (#162) * ElasticSearch Document Primary Key The ES sink connector misses the feature of choosing the key from the Key or Header. No SMT would help move data from the Key into the Value payload so that the connector can work in the scenarios where the Key or a Header carries information to be used as part of the ElasticSearch document primary key. The change refines the TransformAndExtractPK to take the Key and Headers. It adds tests that were missing for PrimaryKeyExtractor, JsonPayloadExtractor and TransformAndExtractPK * Improve the code complexity Co-authored-by: David Sloan <[email protected]> * Improve the test for json payload to mix ing OptionValues and reduce the code required Make the _key/_value/_header a constant. * Avoid deseralising the key a json if there is not _key path in the primary keys list * Enhances the functionality of PK path extraction by allowing the path to be specified as _key or nested paths like _key.fieldA.fieldB. This change broadens the scope of supported incoming types, ensuring compatibility with all Kafka Connect Struct types, as well as schemaless input. It provides more flexibility and robustness in handling diverse data formats for primary key extraction. * Fix the unit tests and the handling of bytes/string * Remove unused import --------- Co-authored-by: stheppi <[email protected]> Co-authored-by: David Sloan <[email protected]>
Stream Reactor 8.1.16
Improvements to the HTTP Sink (#163) * Improvements to the HTTP Sink This PR introduces the following enhancements to the HTTP Sink: 1. **Queue Limiting**: We've set a limit on the queue size per topic to reduce the chances of an Out-of-Memory (OOM) issue. Previously the queue was unbounded and in a scenario where the http calls are slow and the sink gets more records than it clears, it would eventually lead to OOM. 2. **Offering Timeout**: The offering to the queue now includes a timeout. If there are records to be offered, but the timeout is exceeded, a retriable exception is thrown. Depending on the connector's retry settings, the operation will be attempted again. This helps avoid situations where the sink gets stuck processing a slow or unresponsive batch. 3. **Duplicate Record Handling**: To prevent the same records from being added to the queue multiple times, we've introduced a `Map[TopicPartition, Offset]` to track the last processed offset for each topic-partition. This ensures that the sink does not attempt to process the same records repeatedly. 4. **Batch Failure Handling**: The changes also address a situation where an HTTP call fails due to a specific input, but the batch is not removed from the queue. This could have led to the batch being retried indefinitely, which is now prevented. In the near future, there will be a new PR to further reduce the code complexity around the batching approach and the boilerplate code. * fix the unit test * Rename variable * Removes the invalid functional tests. a failed batch request is not retried anymore. * Remove unused functions --------- Co-authored-by: stheppi <[email protected]>
Stream Reactor 8.1.15
Ignore null records (#156) * Ignore null records Sometimes, custom made SMTs overwrite the payload and pass nulls to the connector leading to unintended results. * Fix the linting error --------- Co-authored-by: stheppi <[email protected]>
Stream Reactor 8.1.14
HTTP Sink Reporter Fixes
Stream Reactor 8.1.13
HTTP Sink Improvement
Stream Reactor 8.1.12
Data lake sink improvements. HTTP sink batching fix.
Stream Reactor 8.1.11
HTTP Sink Improvements
Stream Reactor 8.1.10
Merge pull request #144 from lensesio-dev/chore/dependency-upgrades Chore/dependency upgrades
Stream Reactor 8.1.9
ServiceBus: Allowing for null contentType and other optional values (…