Commit Graph

4183 Commits

Author SHA1 Message Date
Oleg Zhurakousky
4fb9a16c99 Fix tests after Observation feature was added to StreamBridge 2024-12-09 15:48:59 +01:00
Oleg Zhurakousky
1349adaba3 GH-3053 Fix regression with 'default' properties validation
Resolves #3053
2024-12-09 13:52:49 +01:00
Oleg Zhurakousky
c67fca58c4 GH-3052 Add to additional-spring-configuration-metadata.json
Resolves #3052
2024-12-04 16:16:44 +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
Oleg Zhurakousky
f392488dae Merge pull request #3044 from omercelikceng/fix-typo-docs
Fix typo in docs for rabbit and spring cloud stream sections
2024-12-04 13:12:26 +01:00
Oleg Zhurakousky
9bd2c87bb1 Merge pull request #3043 from omercelikceng/fix-typo
Fix typo in docs
2024-12-04 13:12:02 +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
spring-builds
8cdde2e3fd Bumping versions 2024-11-23 14:13:43 +00:00
Ömer Çelik
94f061d4cc Fix typo in docs for rabbit and spring cloud stream sections 2024-11-18 18:14:27 +03:00
Ömer Çelik
7c396a602c Fix typo in docs 2024-11-18 18:05:47 +03:00
Oleg Zhurakousky
a67de87e42 Merge pull request #3029 from beni0888/fix-typo-overview-error-handling
Fix typo in overview-error-handling.adoc
2024-11-18 14:09:43 +01:00
Ömer Çelik
dccf8ae16a Message Channel should be closed in specified cases : application shutdown, unbinding or exceeding cache size.
checkstyle fixes

Resolves #2869
Resolves #3026
2024-11-18 14:07:48 +01: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
Fernando Blanch
a1c7773a82 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:36:22 +01:00
spring-builds
1b083c943e Going back to snapshots 2024-11-08 01:39:01 +00:00
spring-builds
34798150d8 Update SNAPSHOT to 4.2.0-RC1 2024-11-08 01:36:20 +00:00
Jesús Miguel Benito Calzada
84e7238922 Fix typo in overview-error-handling.adoc 2024-11-06 10:28:12 +01:00
Soby Chacko
e14bc1cb51 Revert "Adding Spring Cloud Stream Version To Message Headers For Easier Debugging Of Issues."
This reverts commit a8fb34db0e.
2024-11-05 16:50:08 -05:00
Soby Chacko
13874dc2aa Addressing checkstyle issues 2024-11-05 16:28:12 -05:00
Oleg Zhurakousky
505a33be9e Add additional utility methods 2024-11-05 15:53:52 +01:00
Oleg Zhurakousky
baaf8d555a GH-2969 Initial commit to add StandardBatchUtils 2024-11-05 15:53:52 +01:00
Ömer Çelik
a8fb34db0e Adding Spring Cloud Stream Version To Message Headers For Easier Debugging Of Issues.
Fix checkstyles
Resolves #3027
2024-11-05 12:50:19 +01:00
Artem Bilan
17ac6352e4 Fix FunctionConfiguration.sanitize() for generics
The `FunctionConfiguration.sanitize()` use a `rawtypes` trying to hide
generics routines.

Spring Integration 6.4 has introduced a `BaseMessageBuilder` which does not work
with `rawtypes`.

* Fix `FunctionConfiguration.sanitize()` to expose a `<P>` generic argument
to satisfy a new `MessageBuilder` byte code, plus to meet all the expectations
of this method consumers
* In addition perform some code clean to optimize a usage of `MessageBuilder`:
 - `setHeader()` does set the value overriding existing one
 - `setHeader()` removes the entry if provided value is `null`
 - This way we just can go ahead with `MessageBuilder` method chain avoiding extra conditions
2024-11-04 16:25:24 -05:00
Oleg Zhurakousky
ffb62cb81b Merge pull request #3025 from aviv-amdocs/patch-1
Docs: Update timeout default
2024-10-30 19:24:38 +01:00
aviv-amdocs
01a508187c Update timeout default 2024-10-30 15:01:00 +02:00
Oleg Zhurakousky
cca19a5772 Fix avro tests 2024-10-28 17:13:58 +01:00
Soby Chacko
8b6b1271ef GH-3024: Add logging for exceptions in KafkaTopicProvisioner
Related to https://github.com/spring-cloud/spring-cloud-stream/issues/3024
2024-10-24 15:02:50 -04:00
Oleg Zhurakousky
12468dcd0a Fix checkstyles 2024-10-21 17:57:07 +02:00
Oleg Zhurakousky
28e0a69e55 Merge pull request #3022 from cppwfs/SCSt-CONN-NAME-FIX
Update docs to show correct prefix for connection-name-prefix
2024-10-21 16:16:43 +02:00
Glenn Renfro
efbe2cd005 Update docs to show correct prefix for connection-name-prefix
Currently docs display the correct prefix as spring.cloud.stream.binder where it should be spring.cloud.stream.rabbit.binder
2024-10-21 10:06:50 -04:00
spring-builds
93478a8922 Bumping versions 2024-10-17 14:21:53 +00:00
Artem Bilan
c96a62f163 GH-2939: Rely on custom AmqpHeaders.RETRY_COUNT for server retries
Fixes: https://github.com/spring-cloud/spring-cloud-stream/issues/2939

The RabbitMQ 4.0 does not deal with client side `x-*` headers.
Therefore, an `x-death.count` is not incremented anymore when
message is re-published from client back to the broker.

* Spring AMQP 3.2 has introduced an `AmqpHeaders.RETRY_COUNT` custom header.
Use `messageProperties.incrementRetryCount()` in the `RabbitMessageChannelBinder`
when we re-published message back to the broker for server-side retries
* Fix docs respectively

Resolves #3019
2024-10-17 12:00:11 +02:00
Soby Chacko
bf9ea9e626 Fix Rabbit binder compiliation issues 2024-10-14 14:19:45 -04:00
Soby Chacko
d9326ada75 Adding kotlin-stdlib-jdk8 depedency in spring-cloud-stream-integration-tests 2024-10-14 12:33:23 -04:00
Oleg Zhurakousky
723f44dd83 Merge pull request #3021 from spring-cloud/dependabot/maven/schema-registry/org.apache.avro-avro-1.11.4
Bump org.apache.avro:avro from 1.11.3 to 1.11.4 in /schema-registry
2024-10-09 08:32:21 +02:00
dependabot[bot]
d68dece939 Bump org.apache.avro:avro from 1.11.3 to 1.11.4 in /schema-registry
Bumps org.apache.avro:avro from 1.11.3 to 1.11.4.

---
updated-dependencies:
- dependency-name: org.apache.avro:avro
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-08 14:56:35 +00:00
Oleg Zhurakousky
3c70c04806 GH-3020 Make Kotlin dependency optional
Resolves #3020
2024-10-08 14:53:43 +02:00
buildmaster
a81fb04286 Going back to snapshots 2024-10-08 01:06:11 +00:00
buildmaster
67d4d34a58 Update SNAPSHOT to 4.2.0-M2 2024-10-08 01:03:40 +00:00
Oleg Zhurakousky
559d49381f Merge pull request #3017 from omercelikceng/codecleanupp
Code Cleanup - StringBuilder, Redundant Iteration,  Record
2024-10-07 18:44:05 +02:00
Oleg Zhurakousky
eea905f692 Merge pull request #3015 from sobychacko/gh-2985
GH-2985: Add Kafka Listener Container Customizer interfaces and docum…
2024-10-07 18:43:26 +02:00
Ömer Çelik
cbfd3aa995 Change "synchronized" to reentrant lock for virtual-threads
Fix checkstyles before merge

Code cleanup

Double-Checked Locking Optimization was used to avoid unnecessary locking overhead.
2024-10-07 18:40:51 +02:00
Oleg Zhurakousky
7a5e5d0541 Fix broken cross reference links
Resolves #3018
2024-10-07 18:07:44 +02:00
Soby Chacko
06040728cc Cleanup spring-kafka dependency version. 2024-10-07 10:21:27 -04:00
Ömer Çelik
e445a34f8d Code Cleanup - StringBuilder, Redundant Iteration, Record 2024-10-05 01:32:15 +03:00
Soby Chacko
f8d6caa429 GH-2985: Add Kafka Listener Container Customizer interfaces and documentation
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2985

This commit introduces new customization options for Kafka listener containers
in Spring Cloud Stream, along with comprehensive documentation:

- Add KafkaListenerContainerCustomizer interface for Kafka-specific customization
  with access to extended consumer properties
- Extend ListenerContainerWithDlqAndRetryCustomizer to include access to
  extended consumer properties
- Update KafkaMessageChannelBinder to support the new customizer interfaces
- Implement KafkaListenerContainerCustomizerTests for integration testing
- Add detailed AsciiDoc reference documentation explaining the purpose,
  usage, and hierarchy of these customizer interfaces:
  * ListenerContainerCustomizer (existing)
  * KafkaListenerContainerCustomizer (new)
  * ListenerContainerWithDlqAndRetryCustomizer (extended)
- Update navigation to include the new documentation

These changes enhance the flexibility and configurability of Kafka consumer
endpoints in Spring Cloud Stream applications, allowing users to fine-tune
their listener containers based on specific requirements and scenarios,
with improved access to Kafka-specific properties.
2024-10-04 17:53:13 -04:00
Oleg Zhurakousky
6f1b5a4d93 Fix checkstyles before merge
Resolves #3012
2024-10-02 12:25:22 +02:00