Commit Graph

119 Commits

Author SHA1 Message Date
Soby Chacko
7248ac6c09 Test support dependency cleanup 2022-11-29 17:35:12 -05:00
Soby Chacko
f0f88e5de0 Rename spring-cloud-stream-binder-test
- Rename to spring-cloud-stream-test-support
- Make downstream binder dependency changes
2022-11-29 16:26:17 -05:00
Oleg Zhurakousky
c9778d88c9 Fixing checkstyle from previous commit
Resolves #2567
2022-11-29 11:30:50 -08:00
Kim Escobar
c1ce3cec75 Fix ClassCastException when using batch mode
Fix ClassCastException when handling error while using batch mode that prevents the republish of the message into the DLQ. The issue happened whenever the republish to dlq was enabled or if republish was disabled and max attempts were > 1 while the batch mode was enabled, because the handler was not expecting the the sourceData for the ErrorMessage could be a list of amqp message.
2022-11-29 10:40:17 -08:00
Oleg Zhurakousky
58ef5b0479 GH-2570 Ensure consistency in error handling
Rework error handling documentation
Remove dependence and usage of global errorChannel

Resolves #2570
2022-11-29 10:04:03 -08:00
buildmaster
75f16e336b Going back to snapshots 2022-11-17 17:10:08 +00:00
buildmaster
c05e4b82c1 Update SNAPSHOT to 4.0.0-RC2 2022-11-17 17:06:33 +00:00
PINGUET Julien
2f37e98924 fix: set "spring-kafka-test" scope to "test"
Fixes gh-2387
2022-11-08 13:37:13 -05:00
Soby Chacko
330610fde9 Address compile issues in Kafka binder tests 2022-11-03 14:46:33 -04:00
buildmaster
9a82f726b0 Going back to snapshots 2022-10-27 21:44:40 +00:00
buildmaster
14e58050ef Update SNAPSHOT to 4.0.0-RC1 2022-10-27 21:41:15 +00:00
spencergibb
31fdea641d Removes more snapshot versions 2022-10-27 13:19:14 -04:00
spencergibb
bd9dd3a553 Removes version for spring-rabbit-stream 2022-10-27 13:16:32 -04:00
Soby Chacko
4ebeadc0f6 Dependency cleanup - Kafka binder
Revmoe unnecessary explicit depdency of kafka-clients in the binder
2022-10-27 12:57:14 -04:00
Soby Chacko
b088879083 Dependency cleanup in Kafka binder
Remove unnecessary test dependencies added as
compile scope in Kafka binder.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2546
2022-10-26 14:56:25 -04:00
Oleg Zhurakousky
b86e713a58 Fix general Observablity support as well as Rabbit Observability support 2022-10-24 17:42:43 +02:00
Soby Chacko
9fa26da9ca Add RetryTemplate to reactive kafka binder tests
This is needed because of a recent commit: cc04b0b13b
2022-10-20 11:40:59 -04:00
Soby Chacko
8e5f2d546e checkstyle fixes 2022-10-20 11:03:45 -04:00
omercelikceng
cc04b0b13b KafkaTopidProvisioner retry refactoring
Use a retry template for topic description method call through admin client
when provisioning consumer destinations. We are retrying because in the event
this operation gets failed, it is retried with the default retry settings in the provisioner.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2520
2022-10-20 10:56:19 -04:00
Gary Russell
d93a4a0c4a GH-2510: RabbitMQ Super Streams Concurrency
Add support for concurrency.

Use try with resources in stream tests.

Fix Test with Latest Boot

Resolves #2524
2022-10-19 09:36:30 +02:00
Chris Bono
3fa2c6bcc8 GH-2523: Port KafkaStreamsVersionAgnosticTopologyInfoFacade from 3.2.x
See #2523
2022-10-15 14:47:47 -05:00
Oleg Zhurakousky
d77f07e7e8 Polishing 2022-10-13 16:49:08 +02:00
Gary Russell
48c8550753 Remove Usage of RabbitMQ http-client
Replace with `WebClient`.
2022-10-13 16:48:56 +02:00
Soby Chacko
5cb598a211 Update testcontainers rabbitmq version
Update testcontainers rabbitmq version to 1.17.1.
This is needed for running the Rabbit binder tests
successfully on Apple's silicon (M1) chips.
2022-10-10 15:59:53 -04:00
Chris Bono
8e3d2e9fff Smarter state store retrieval in InteractiveQueryService
Fixes #2523
2022-10-09 01:49:00 -05:00
Chris Bono
d6c6b1b9aa Adjust tests to surface bug w/ state store retrieval 2022-10-09 01:39:25 -05:00
Oleg Zhurakousky
7bd67c7776 Revert "Revert "GH-2510: Rabbit Binder Scale-out on Super Stream""
This reverts commit c28873c870.
2022-10-06 14:01:00 +02:00
buildmaster
fdc0d683ec Going back to snapshots 2022-10-06 00:51:30 +00:00
buildmaster
716f045bdf Update SNAPSHOT to 4.0.0-M5 2022-10-06 00:48:03 +00:00
Oleg Zhurakousky
c28873c870 Revert "GH-2510: Rabbit Binder Scale-out on Super Stream"
This reverts commit 16c8591ddd.
2022-10-05 21:31:01 +02:00
Oleg Zhurakousky
2e6eadefa3 Set more 'proxyBeanMethods' to false 2022-10-05 13:27:07 +02:00
Oleg Zhurakousky
3317d38779 Set 'proxyBeanMethods' to false 2022-10-05 09:30:04 +02:00
Ginkgo
b01c804008 Fix KafkaBinderHealthIndicator return Down Error
When we set enable.auto.commit to true, the actuator/health returns DOWN status.

For more details see this: https://github.com/spring-cloud/spring-cloud-stream/pull/2504#issue-1361385289

Update KafkaBinderConfigurationProperties.java

Polish commit
2022-10-03 19:31:31 -04:00
Soby Chacko
b85ee57d80 Kafka Streams Binder Default Package Beans
Currently, in Kafka Streams binder-based apps, processor beans
need to be declared public. This is unnecessary and caused by
some restrictions in the binder. This PR fixes this restriction.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2516
2022-09-29 17:51:38 -04:00
Gary Russell
16c8591ddd GH-2510: Rabbit Binder Scale-out on Super Stream
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2510

New feature on RabbitMQ (Super Stream with Single Active Consumer) enables
scaling out app instances when using this queue type/config.

`RabbitStreamMessageHandler` is now available in Spring Integration.
2022-09-27 12:51:42 -04:00
Oleg Zhurakousky
60ddac5560 Polish Kinesis binder following previous commit 2022-09-27 17:03:15 +02:00
Oleg Zhurakousky
5035a40990 GH-2512, 2507 Establish binder identity & change error channel binding scheme
This commit establishes the concept of binder identity (binder instance identity) to be used in cases where unique-to-the-binder-instance naming is required.
For example such naming is required to fix GH-2507 where error channel names could colide if two binders use the same destination name.

Resolves #2512
Resolves #2507
2022-09-27 16:02:24 +02:00
Oleg Zhurakousky
65c6274a11 GH-2511 Fix Rabbit environment tests/binder
Resolves #2511
2022-09-26 11:39:45 +02:00
spencergibb
63b96ba135 Updates testcontainers to 1.17.3 2022-09-22 12:53:48 -04:00
Oleg Zhurakousky
00d0c6bacf Add new spring-boot .imports files and move auto-configuration classes there 2022-09-22 17:53:47 +02:00
Soby Chacko
af022b2ee0 Cleanup Kafka Client Deps
Let the Kafka client versions be managed from Spring Boot
rather than the binder manages it's own versions.
2022-09-15 15:17:32 -04:00
Oleg Zhurakousky
fbdf2dc40b Fix Rabbit tests 2022-09-12 15:27:52 +02:00
Nico Heller
de0efcf0a1 GH-2485: Improvements in Kafka Binder Metrics
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2485

These improvements are threading related

Initial implementation

Readd missing 'cache' for recent offset lags and general refactoring

Add a test case for the schedule-only variant and externalize scheduling interval

Consistency of configuration property naming and minor cleanup of existing code

Review feedback: documentation, author addition and copyright adjustments

Doc wording changes

Fix checkstyle issues

Adjust reference doc and improve new property names according to review

Move documentation to the correct file
2022-09-02 10:21:11 -04:00
Gary Russell
4fda96507c GH-2453: RMQ: Full Support for Alternate Exchange
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2453

Previously, to configure the use of an alternative exchange (used to route
messages when no queue is bound), the user had to manually declare the
exchange and any bindings, and modify the destination exchange using a
`DeclarablesCustomizer` bean.

Add first class support to configure the destination exchange and, optionally,
provision the alternate exchange as well as optionally binding a specific
queue to it.

Resolves #2502
2022-09-01 16:44:15 +02:00
Soby Chacko
92ea029a8b AdminClient usage if autoCreateTopics is disabled (#2494)
* AdminClient usage if autoCreateTopics is disabled

Don't Create an AdminClient if autoCreateTopics is False

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

* Fix copyright year
2022-08-29 09:11:14 -04:00
Gary Russell
0daa58c48a GH-2483: Fix Tests 2022-08-18 10:19:19 -04:00
Gary Russell
f7146ad02e GH-2483: RMQ: Fix Redeclare Multi Routing Keys
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2483

https://github.com/spring-cloud/spring-cloud-stream-binder-rabbit/issues/242
added support for binding a queue with multiple routing keys. However, only
one binding was added to the `autoRedeclarContext`.

Use the `Declarables` wrapper to support multiple instances with the same
name.

**cherry-pick to 3.2.x**
Resolves #2484
2022-08-18 15:47:17 +02:00
Chris Bono
f94da9d311 Update Spring Boot from 3.0.0-M4 -> 3.0.0-SNAPSHOT
Adapts to the following changes in upstreams libs:

- Spring Kafka removed ListenableFuture
- Spring AOT changed generator API

Fixes #2473 #2465

Checkstyle fixes
2022-08-09 10:32:25 -04:00
buildmaster
605344d5a5 Going back to snapshots 2022-07-29 19:05:12 +00:00
buildmaster
c69888ae68 Update SNAPSHOT to 4.0.0-M4 2022-07-29 19:02:38 +00:00