382 Commits

Author SHA1 Message Date
Soby Chacko
e5d0d14836 Remove reactive-kafka binder
Since the reactor-kafka project has been discontined, we are removing
reactive Kafka binder from Spring Cloud Stream which was already
deprecated on the 4.3.x line.

See: https://spring.io/blog/2025/05/20/reactor-kafka-discontinued

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-06-12 11:33:06 -04:00
spring-builds
0a3e24322e Bumping versions 2025-06-12 14:17:10 +00:00
Oleg Zhurakousky
9cd63156a1 Disable flaky Kafka tests
Signed-off-by: Oleg Zhurakousky <ozhurakousky@vmware.com>
2025-06-12 07:05:43 -04:00
Soby Chacko
3a937debfa Kafka binders test migration to Kafka 4.0.0 client
- Replace deprecated ValueTransformerWithKey with FixedKeyProcessor
- Update TimeWindows.of() to TimeWindows.ofSizeWithNoGrace()
- Migrate branch() to split().branch() with Named and Branched
- Replace deprecated KafkaTestUtils.consumerProps() signature
- Update StreamPartitioner return type to Optional<Set<Integer>>
- Modernize Processor API imports and method signatures
- Add EmbeddedKafkaBroker parameter injection for JUnit 5
- Fix Consumer.poll() to use Duration parameter
- Remove unused imports and deprecated API usage

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-06-11 20:18:49 -04:00
Soby Chacko
4d4e64b415 Revert "Initial/partial Kafka migration"
This reverts commit 767fc86dfb.
2025-06-11 14:21:14 -04:00
Oleg Zhurakousky
767fc86dfb Initial/partial Kafka migration 2025-06-11 10:56:33 -04:00
Oleg Zhurakousky
af820ee3c1 Initial 5.0 migration 2025-06-11 10:55:38 -04:00
spring-builds
a23dc7fe0a Going back to snapshots 2025-05-29 14:09:51 +00:00
spring-builds
88532ae040 Update SNAPSHOT to 4.3.0 2025-05-29 14:06:48 +00:00
spring-builds
3bde3697ab Bumping dependency versions after release 2025-05-29 00:12:08 +00:00
spring-builds
57c0198979 Bumping versions to 4.3.1-SNAPSHOT after release 2025-05-29 00:10:54 +00:00
spring-builds
70b070d4e7 Going back to snapshots 2025-05-29 00:10:52 +00:00
spring-builds
e8ab3f9388 Update SNAPSHOT to 4.3.0 2025-05-29 00:07:17 +00:00
Soby Chacko
5425cdd270 Deprecate Reactive Kafka Binder in 4.3.0
See details here: https://spring.io/blog/2025/05/20/reactor-kafka-discontinued

Reactive Kafka binder will be compleltely removed in a future release

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-05-23 19:40:01 -04:00
Oleg Zhurakousky
d1f01629b4 Fix dependncies in Rabbit core 2025-05-16 18:20:57 +02:00
Oleg Zhurakousky
bf447ffaad Revert "Fix dependncies in Rabbit core"
This reverts commit 7fd161963a.
2025-05-16 18:20:32 +02:00
Oleg Zhurakousky
7fd161963a Fix dependncies in Rabbit core 2025-05-14 18:28:48 +02:00
spring-builds
1e401c8921 Going back to snapshots 2025-05-01 11:46:50 +00:00
spring-builds
b56b9f880b Update SNAPSHOT to 4.3.0-RC1 2025-05-01 11:44:19 +00:00
Deyan Yurukov
a526bab311 Removes deprecated DescribeTopicsResult method
Signed-off-by: Deyan Yurukov <deyan.yurukov@gmail.com>
Resolves #3111
2025-04-28 10:15:18 +02:00
Oleg Zhurakousky
98c6087b65 Fix Kafka test 2025-04-16 19:40:24 +02:00
Oleg Zhurakousky
af1b8a3071 GH-3067 Adjust phase of StreamsBuilderFactoryManager
Adjust phase of StreamsBuilderFactoryManager to be lower than WebServerGracefulShutdownLifecycle

Resolves #3067
2025-04-14 08:34:29 +02:00
Oleg Zhurakousky
4247670032 Fix formatting 2025-04-11 13:23:31 +02:00
spring-builds
18bc7d1fe7 Going back to snapshots 2025-04-07 10:26:31 +00:00
spring-builds
177f16745d Update SNAPSHOT to 4.3.0-M3 2025-04-07 10:24:02 +00:00
Oleg Zhurakousky
da58e42648 GH-3086 Define explicit defineInput/Output binding methods
Also changed signature to return properties for convinience
Added test
2025-04-04 15:21:58 +02:00
Oleg Zhurakousky
1fd331f5bf GH-3104 fix formatting 2025-03-27 17:04:09 +01:00
Oleg Zhurakousky
547a435b1d GH-3104 Add JsonGetter to show SpEL expression as String
This is specifically done for actuator binding endpoint to avoid type conversion

Resolves #3104
2025-03-27 16:49:12 +01:00
Soby Chacko
d6cc07df97 GH-3090: Ensure client factory customizers are applied before transaction manager creation
Fixes: #3090

Issue: https://github.com/spring-cloud/spring-cloud-stream/issues/3090

Fixes issue where KafkaBinderConfiguration would add customizers after the
transaction manager was already created.

The KafkaMessageChannelBinder was initializing the transaction manager in the
constructor before client factory customizers were added, which meant the customizers
were never applied to the producer factory used by the transaction manager.

- Moves transaction manager initialization from the constructor to the onInit() method
- Leverages the existing InitializingBean lifecycle to ensure customizers are applied
  before the transaction manager is created
- Adds comprehensive test coverage to verify the fix in the binder and via auto-configuration

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>

Resolves #3091
2025-03-13 16:58:26 +01:00
DidierLoiseau
48659f9e92 Fixes: #3066
Issue link: https://github.com/spring-cloud/spring-cloud-stream/issues/3066

Signed-off-by: DidierLoiseau <didierloiseau+github@gmail.com>
2025-03-10 16:51:30 -04:00
akenra
e0fdfdecc8 fix(kafka-topic-provisioner): Prevent resource leak on binding producer to KafkaMessageChannelBinder
- Producer that fetches partition info now initializes within a try-with-resources block
- If exceptions occur on calling producer.partitionsFor(topicName), it's now properly closed and resources are released

Signed-off-by: akenra <37288280+akenra@users.noreply.github.com>
2025-03-07 22:42:56 +05:00
spring-builds
a5c53f735f Going back to snapshots 2025-02-27 15:46:58 +00:00
spring-builds
1a4eadd8fe Update SNAPSHOT to 4.3.0-M2 2025-02-27 15:44:27 +00:00
spring-builds
dc3669bfcf Going back to snapshots 2025-01-30 03:00:53 +00:00
spring-builds
4edccc3b56 Update SNAPSHOT to 4.3.0-M1 2025-01-30 02:58:18 +00:00
spring-builds
fcd7cba51d Bumping versions 2025-01-18 15:09:52 +00:00
Soby Chacko
8954aaf336 Bumping next version to 4.3.0-SNAPSHOT 2025-01-17 11:06:07 -05:00
Oleg Zhurakousky
70b8037966 Merge pull request #3064 from artembilan/GH-3062
GH-3062: Fix `KafkaBinderMetrics` for resource leaks
2025-01-08 11:25:10 +01:00
Oleg Zhurakousky
534277ff3d GH-3065 Fix lazy initialization for Kafka streams configuration classes
Resolves #3065
2025-01-06 15:07:27 +01:00
Artem Bilan
90afffb273 GH-3062: Fix KafkaBinderMetrics for resource leaks
Fixes: https://github.com/spring-cloud/spring-cloud-stream/issues/3062

The `KafkaBinderMetrics` creates `KafkaConsumer` instances and schedule the fix rate
task for them, but never closes them even when the `scheduler` is shut downed

* Implement a `Lifecycle` contract in the `KafkaBinderMetrics` and call `close()`
from the `stop()` to satisfy CRaC resource management expectations.
* Also close all the `KafkaConsumer` instances from the `metadataConsumers`

**Cherry-pick to `4.1.x`**
2025-01-03 14:43:28 -05:00
Oleg Zhurakousky
ad2a654160 GH-3055 Polish 2024-12-12 14:27:58 +01:00
Oleg Zhurakousky
e8bed37161 GH-3055 Add BinderHeaderMapper to reactive Kafka binder
Resolves #3055
2024-12-12 13:49:36 +01:00
Oleg Zhurakousky
2f9be858d7 GH-3055 Add additional types for toString() serialization
Add additional types for toString() serialization to Kafka's  to ensure propper serialization/deserialization of message header values.

Resolves #3055
2024-12-11 13:08:41 +01:00
Oleg Zhurakousky
4fb9a16c99 Fix tests after Observation feature was added to StreamBridge 2024-12-09 15:48:59 +01:00
Agustino Lim
a88c34fc9f GH-3033: Register ObservationRegistry for Dynamic MessageChannels
Fixes: gh-3033

* ensure `ObservationRegistry` is registered on dynamically created `MessageChannel` instances in `StreamBridge`
2024-12-04 13:13:20 +01:00
spring-builds
2aa8d495cd Bumping dependency versions after release 2024-12-03 00:23:06 +00:00
spring-builds
f1e6c87814 Bumping versions to 4.2.1-SNAPSHOT after release 2024-12-03 00:21:56 +00:00
spring-builds
f03ea2582a Going back to snapshots 2024-12-03 00:21:54 +00:00
spring-builds
b26353cfcc Update SNAPSHOT to 4.2.0 2024-12-03 00:18:38 +00:00
Artem Bilan
a9fe0c2c3c GH-3040: Add virtual threads customizer for RabbitMQ binder
Fixes: #3040
Resolves #3041

This change adds out-of-the-box `ListenerContainerCustomizer<AbstractMessageListenerContainer>`
to set `VirtualThreadTaskExecutor` into an `AbstractMessageListenerContainer` created by the binder
when `Threading.VIRTUAL` condition is met
2024-11-18 12:10:49 +01:00