Skip to content

Releases: lensesio/stream-reactor

Stream Reactor 8.1.18

29 Nov 15:23
c272cd5
Compare
Choose a tag to compare

🚀 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 or MOVE) to perform on source files after successful processing.
    • post.process.action.bucket: Specifies the target bucket for the MOVE action (required for MOVE).
    • post.process.action.prefix: Specifies a new prefix for the file’s location when using the MOVE action (required for MOVE).
  • 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

25 Nov 21:56
0fe0531
Compare
Choose a tag to compare
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

12 Nov 15:20
8652879
Compare
Choose a tag to compare
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

29 Oct 20:32
2e53f24
Compare
Choose a tag to compare
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

28 Oct 13:26
a737863
Compare
Choose a tag to compare
HTTP Sink Reporter Fixes

Stream Reactor 8.1.13

25 Oct 11:28
d78e5be
Compare
Choose a tag to compare
HTTP Sink Improvement

Stream Reactor 8.1.12

24 Oct 17:52
Compare
Choose a tag to compare
Data lake sink improvements. HTTP sink batching fix.

Stream Reactor 8.1.11

17 Oct 13:26
d0de152
Compare
Choose a tag to compare
HTTP Sink Improvements

Stream Reactor 8.1.10

16 Oct 14:17
6b3805f
Compare
Choose a tag to compare
Merge pull request #144 from lensesio-dev/chore/dependency-upgrades

Chore/dependency upgrades

Stream Reactor 8.1.9

10 Oct 13:15
c6044c1
Compare
Choose a tag to compare
ServiceBus: Allowing for null contentType and other optional values (…