330 Commits

Author SHA1 Message Date
Ryan Baxter
9262a16245 Fising assert4j failures 2025-04-13 15:41:02 -04:00
Ryan Baxter
c7eff54251 Fixing assert4j assertion 2025-04-13 15:21:17 -04:00
Oleg Zhurakousky
c643bd3ae1 Fix formatting 2025-04-13 15:06:07 -04:00
DidierLoiseau
43490da638 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 17:24:17 -04:00
akenra
63b28eb3a8 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 13:38:52 -05:00
spring-builds
968c1151b6 Bumping dependency versions after release 2025-01-09 23:58:38 +00:00
spring-builds
9d9c5aa029 Bumping versions to 4.1.6-SNAPSHOT after release 2025-01-09 23:57:32 +00:00
spring-builds
65d4722b3f Going back to snapshots 2025-01-09 23:57:31 +00:00
spring-builds
f09da3ada6 Update SNAPSHOT to 4.1.5 2025-01-09 23:54:06 +00:00
Oleg Zhurakousky
e89ed59818 GH-3065 Fix lazy initialization for Kafka streams configuration classes
Resolves #3065
2025-01-06 15:08:58 +01:00
Soby Chacko
124dac5e9f Remove hard-coded spring-kafka version
Fixes: #3057

Issue: https://github.com/spring-cloud/spring-cloud-stream/issues/3057
2024-12-24 12:26:53 -05:00
spring-builds
a78753854f Bumping dependency versions after release 2024-11-27 00:50:53 +00:00
spring-builds
7e78f83433 Bumping versions to 4.1.5-SNAPSHOT after release 2024-11-27 00:49:48 +00:00
spring-builds
14b663209b Going back to snapshots 2024-11-27 00:49:46 +00:00
spring-builds
a2628ff14f Update SNAPSHOT to 4.1.4 2024-11-27 00:46:22 +00:00
spring-builds
a939fc7697 Bumping versions 2024-11-26 09:20:09 +00:00
spring-builds
0c8fd7db74 Bumping dependency versions after release 2024-11-26 03:09:14 +00:00
spring-builds
9616261dc7 Bumping versions to 4.1.5-SNAPSHOT after release 2024-11-26 03:08:09 +00:00
spring-builds
3e71b145a7 Going back to snapshots 2024-11-26 03:08:07 +00:00
spring-builds
a62378202e Update SNAPSHOT to 4.1.4 2024-11-26 03:04:49 +00:00
Oleg Zhurakousky
d6fd967263 Upgrade to spring-kafka 3.3.0 2024-11-25 10:44:10 +01:00
Soby Chacko
c5b3201fa2 Fixing build failure issues in reactive Kafka binder 2024-10-29 11:29:18 -04:00
Oleg Zhurakousky
05de9a8222 Fix broken build 2024-10-28 13:53:40 +01:00
Soby Chacko
4dfd9c1df6 GH-3024: Add logging for exceptions in KafkaTopicProvisioner
Related to https://github.com/spring-cloud/spring-cloud-stream/issues/3024
2024-10-24 15:04:22 -04:00
Oleg Zhurakousky
9888a08dff Fix checkstyles 2024-10-21 17:58:35 +02:00
Andy Wilkinson
090ccfad14 Support Spring Boot's KafkaConnectionDetails for Kafka connections
- Integrate KafkaConnectionDetails, a Spring Boot component, in binder
- Update KafkaBinderConfigurationProperties to use KafkaConnectionDetails
- Modify KafkaTopicProvisioner to leverage KafkaConnectionDetails
- Adjust Kafka binder configurations to pass KafkaConnectionDetails
- Update tests to accommodate KafkaConnectionDetails changes
- Add KafkaConnectionDetails to shared.beans for auto-configuration

This change improves flexibility in configuring Kafka connections,
allowing for better support of externalized configuration management
and aligning with Spring Boot's connection abstraction model.
2024-09-24 16:46:54 -04:00
Oleg Zhurakousky
8fc89bc4c0 GH-2997 Fix support for producer's error-handler-definition
Resolves #2997
2024-09-24 17:18:48 +02:00
Soby Chacko
e81976f7b5 Make MessageConverterHelper bean names distinct in binders. 2024-09-23 18:28:08 +02:00
Soby Chacko
dc38fd1199 Enhancements in Kafka binder FunctionBatchingConversionTests 2024-09-23 18:28:00 +02:00
Soby Chacko
e4a06ee686 Customizing batch message conversion behavior for Kafka binder
Continuation of the previous commit: 14c10462f8
2024-09-23 18:27:52 +02:00
Oleg Zhurakousky
2517760529 GH-2994, GH-2986 Add initial support for customizing Message Converter behavior
primarily during batch processing.
2024-09-23 18:27:42 +02:00
Kurt Hong
87ed345d1a KafkaBinderMetrics' metrics should be unregistered before it's thread
* KafkaBinderMetrics' metrics should be unregistered before it's threadpool is shutdown.
* update authors and copyright years
2024-08-23 13:40:16 -04:00
buildmaster
b5eccf6232 Bumping versions to 4.1.4-SNAPSHOT after release 2024-07-10 16:21:06 +00:00
buildmaster
2cbcd93232 Going back to snapshots 2024-07-10 16:21:05 +00:00
buildmaster
f459e2bfcd Update SNAPSHOT to 4.1.3 2024-07-10 16:17:09 +00:00
buildmaster
7c206241cc Bumping versions to 4.1.3-SNAPSHOT after release 2024-05-30 10:53:13 +00:00
buildmaster
084242ac9e Going back to snapshots 2024-05-30 10:53:12 +00:00
buildmaster
79d093e984 Update SNAPSHOT to 4.1.2 2024-05-30 10:49:10 +00:00
Soby Chacko
244de0fcea Rabbit biner AOT/native runtime hints
* Add missing native runtime hints for the Rabbit binder properties classes

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2938
2024-05-29 16:59:46 -04:00
Soby Chacko
0e2954c01e GH-2941: Kafka Streams binder composition issues
* When composed functions are used on component functions in the Kafka Streams binder,
  there is an issue in which the first function in the composition is invoked twice.
  Fixing this issue by ensuring that the function execution path is only invoked once.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2941
2024-05-29 11:57:59 -04:00
Soby Chacko
13f94d266f ReactorKafkaBinderTests race condition issue
* There seems to be a race condition in ReactorKafkaBinderTests that causes
  tests to fail on CI occasionaly. Trying to address this by single dedicated
  topic per test.
2024-05-17 17:38:53 -04:00
Soby Chacko
fd9fa80055 Test cleanup
* Use `EnableAutoConfiguration` instead of `SpringBootApplication` in tests
2024-05-16 15:28:54 -04:00
Soby Chacko
49b7a8028a Kafka binder test cleanup
* Use `EnableAutoConfiguration` instead of `SpringBootApplication` in tests
2024-05-16 14:25:56 -04:00
Soby Chacko
bd2bf09d1e GH-2951: Batch consumer and DLQ issues
Batch consumer with `ListenerContainerWithDlqAndRetryCustomizer` should disable binder-based DLQ.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2951

* Addressing PR review comments

* Addressing review
2024-05-16 11:56:55 -04:00
Soby Chacko
a3c4364740 GH-2949: KafkaBinderHealthIndicator consumer group.id
* Add a new property in `KafkaBinderConfigurationProperties` to allow
  the users to specify a `group.id` for the metadata consumer used by the
  health indicator.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2949
2024-05-13 20:43:30 -04:00
Soby Chacko
a89331c095 GH-2948: Adding configuration for ReactorKafkaBinderHealthIndicator
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2948
2024-05-13 13:49:25 -04:00
Soby Chacko
c2754de2ab GH-2943: EmbeddedKafka usage improvements in Kafka binder
* Currently, EmbeddedKafka is initialized as part of the class initialization in a few tests
  in the Kafka binder. This is preventing individual JUnit tests from being executed from an IDE (IntelliJ, for example).
  If we move this initialization to the JUnit  method, then that seems to be working.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2943
2024-05-01 13:46:23 -04:00
Soby Chacko
d534e840dc GH-2942: EmbeddedKafka usage improvements in Kafka Streams binder
* Currently, EmbeddedKafka is initialized as part of the class initialization.
  This is preventing individual JUnit tests from being executed from an IDE (IntelliJ, for example).
  If we move this initialization to the JUnit `BeforeAll` method, then that seems to be working.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2942
2024-05-01 11:52:47 -04:00
Soby Chacko
1d241583c3 GH-2941: Kafka Streams Component beans composition
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2941

* Introduce function composition for Kafka Streams Component beans
2024-04-30 21:00:04 -04:00
Soby Chacko
7845be50ef GH-2932: Sanitize sensitive data on bindings endpoint
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2932

Spring Boot provides `SanitizingFunction` to allow the applicaitons to clear out
sensitive data when using certain actuator endpoints. This feature can be
extended to custom endpoints as well. Enable the bindings actuator endpoint
to sanitze sensitive data based on user-provided logic in `SantizingFuction`
beans in the application.
2024-04-17 17:30:28 -04:00