Commit Graph

4145 Commits

Author SHA1 Message Date
Oleg Zhurakousky
c643bd3ae1 Fix formatting 2025-04-13 15:06:07 -04:00
Soby Chacko
50d5ae512e Document exception retry behavior for Kafka transactions
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
2025-03-10 17:24:24 -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
spencergibb
2d47fd97b0 Formatting 2025-02-21 11:47:01 -05:00
Oleg Zhurakousky
7d63b8976b GH-3085 add test configuration file 2025-02-21 15:15:40 +01:00
Oleg Zhurakousky
fb0545c8c8 GH-3085 Add Number and Boolean Spel converter
Refactor SpelConverter into an abstract class

Resolves #3085
2025-02-21 15:07:04 +01:00
Steven Gantz
c25d0823f6 Add additional test and error handling
Handle when functionToInvoke returns null

add link to issue

Signed-off-by: Steven Gantz <steven.p.gantz@gmail.com>
2025-02-11 16:52:33 +01:00
Oleg Zhurakousky
283ae83a1e GH-3071 Add documentation for accessing producer/consumer properties
Resolves #3071
2025-02-10 14:25:24 +01:00
Oleg Zhurakousky
c05e7ac169 GH-3071 Add support for accessing producer/consumer properties 2025-02-10 14:23:46 +01:00
Oleg Zhurakousky
1892cd19c1 Add DCO.yaml 2025-01-17 14:35:23 +01: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
Oleg Zhurakousky
24c1abea50 GH-3054 Clear channel cache in StreamBridge during the refresh 2024-12-19 12:30:50 +01:00
Oleg Zhurakousky
c8dcbf1871 GH-3053 Fix regression with 'default' properties validation
Resolves #3053
2024-12-09 13:53:20 +01:00
Oleg Zhurakousky
7bbfe5bafd GH-3052 Add to additional-spring-configuration-metadata.json
Resolves #3052
2024-12-04 16:18:39 +01: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
Fernando Blanch
9fc31b3674 Change order of the registry of sources classes after configuring Environment with all propertySources, so that sources classes can resolve conditions configurations. Fixes GH-3031
Resolves #3032
2024-11-18 11:37:26 +01:00
spring-builds
286d686542 Bumping versions 2024-11-15 09:22:05 +00:00
spring-builds
2558005807 Bumping versions 2024-11-12 09:21:25 +00:00
Soby Chacko
c5b3201fa2 Fixing build failure issues in reactive Kafka binder 2024-10-29 11:29:18 -04:00
Oleg Zhurakousky
d84f6a4b1e Add kotlin stdlib 2024-10-28 14:04:30 +01: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
Oleg Zhurakousky
fa9a80d803 GH-3020 Make Kotlin dependency optional
Resolves #3020
2024-10-08 14:53:02 +02:00
Oleg Zhurakousky
4a2b67df38 Fix broken cross reference links
Resolves #3018
2024-10-07 18:08:37 +02:00
Oleg Zhurakousky
e642cadadd GH-2974 Fix validation when only 'default' properties are used
Resolves #2974
2024-10-02 12:14:00 +02:00
kurt
8148d55251 BindingServiceProperties.bindings property should be thread-safe.
First, thanks for the excellent StreamBridge feature! I've found it very useful.
However, I occasionally encounter the following exception during race conditions.
```
java.lang.NullPointerException: null
    at java.base/java.util.TreeMap.rotateRight(TreeMap.java:2240)
    at java.base/java.util.TreeMap.fixAfterInsertion(TreeMap.java:2272)
    at java.base/java.util.TreeMap.put(TreeMap.java:580)
    at org.springframework.cloud.stream.config.BindingServiceProperties.bindToDefault(BindingServiceProperties.java:397)
    at org.springframework.cloud.stream.config.BindingServiceProperties.bindIfNecessary(BindingServiceProperties.java:381)
    at org.springframework.cloud.stream.config.BindingServiceProperties.getBindingProperties(BindingServiceProperties.java:301)
    at org.springframework.cloud.stream.function.StreamBridge.send(StreamBridge.java:149)
```
BindingServiceProperties.bindings property should be thread-safe.
2024-09-27 11:02:03 +02:00
Oleg Zhurakousky
0336ffd8ca GH-3009 Add post processing support for Supplier
Resolves #3009
2024-09-26 14:09:24 +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
Oleg Zhurakousky
add6b0178e GH-2994, GH-2986 Add documentation explaining batch type conversion 2024-09-23 18:28:17 +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