Commit Graph

3656 Commits

Author SHA1 Message Date
Oleg Zhurakousky
8262124d06 Cleanup 2022-09-14 13:13:47 +02:00
Oleg Zhurakousky
68f052eca1 2506 adjust code to enable full native/aot support
Resolves #2506
2022-09-14 12:55:32 +02:00
Soby Chacko
9a645bc43b Migrating schema registry docs
Initial take on migrating the schema registry refrence docs
from the legacy spring-cloud-schema repository.
2022-09-13 19:05:26 -04:00
Oleg Zhurakousky
fbdf2dc40b Fix Rabbit tests 2022-09-12 15:27:52 +02:00
Stephane Nicoll
1f9418754a Adapt to API change in Spring Framework
See https://github.com/spring-projects/spring-framework/issues/29005

Resolves #2508
2022-09-12 12:34:10 +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
Oleg Zhurakousky
9a18600413 GH-2470 Verify Kotlin lambda working with PollableBean
Resolves #2470
2022-08-31 15:47:59 +02:00
Glenn Renfro
f0c5fe7914 Updated README to fix spelling hiccup 2022-08-31 13:39:16 +02:00
Oleg Zhurakousky
c92bb1f0aa GH-2501 Maje StreamBridge 'safer' if created outside of Spring
Resolves #2501
2022-08-31 13:34:18 +02:00
Soby Chacko
6fcc060b66 Add missing copyrights to schema-registy samples 2022-08-30 17:46:21 -04:00
Chris Bono
449e6f83d8 Rename SCSt schema registry sample (#2500) 2022-08-29 19:30:14 -05:00
Soby Chacko
d38f57e06a Migrating SCSt Schema Registry Sample (#2498)
* Migrating SCSt Schema Registry Sample

* Addressing PR review
2022-08-29 18:38:25 -04:00
Oleg Zhurakousky
ccc26f8863 Small cleanup in StreamBridge
Remove redundant injection of FunctionRegistry since it is the same as FunctionCatalog
2022-08-29 16:56:34 +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
Soby Chacko
eb986d1e77 Schema registry test cleanup 2022-08-26 14:42:19 -04:00
Soby Chacko
1aef594cc9 build script for schema registry components 2022-08-26 14:29:22 -04:00
dependabot[bot]
db8b797e11 Bump h2 from 1.4.192 to 2.1.210 in /schema-registry
Bumps [h2](https://github.com/h2database/h2database) from 1.4.192 to 2.1.210.
- [Release notes](https://github.com/h2database/h2database/releases)
- [Commits](https://github.com/h2database/h2database/compare/version-1.4.192...version-2.1.210)

---
updated-dependencies:
- dependency-name: com.h2database:h2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 13:58:38 -04:00
buildmaster
f4320adb95 Bumping versions 2022-08-26 17:37:59 +00:00
Oleg Zhurakousky
76d8e97614 Disabling temporary endpoint test due to boot changes 2022-08-25 19:48:08 +02:00
Soby Chacko
e1f173e139 Schema Registry Migration
Initial attempt at migrating schema registry from https://github.com/spring-cloud/spring-cloud-schema-registry
to Spring Cloud Stream.

Schema Registry within the scope of Spring Cloud Stream will only support Spring Cloud Stream
specific use cases in the context of binders.

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

Resolves #2492
2022-08-25 19:47:34 +02: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
71ee26b0a1 Use empty context for AOT binder child context
Previously, when running in AOT mode the binder child context
was created w/ the same beans as when in JVM mode. The whole
point of the former is to static initialize an empty fresh context
using the AOT generated initializer.
2022-08-17 12:59:44 -04:00
Soby Chacko
3178464f14 Fixes typo in docs.
Resolves #2478
2022-08-15 14:13:22 -04: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
Bowen Li
b33c76ad84 Update Binding.java 2022-08-08 15:42:18 +02: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
Chris Bono
aa3ab75f64 Remove stream-bridge-avro sample 2022-07-28 16:06:03 +02:00
Chris Bono
55c3f66c61 Remove kafka-streams-branching sample 2022-07-28 16:06:03 +02:00
Chris Bono
5f289a6d41 Remove kafka-native-serialization sample 2022-07-28 16:06:03 +02:00
Soby Chacko
6382326499 Add reactive Kafka binder to bom dependencies 2022-07-27 20:05:54 -04:00
Soby Chacko
ad520fff3f Adding initial docs for reactive Kafka binder
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2457
2022-07-27 20:02:08 -04:00
Oleg Zhurakousky
b276d803d7 Address functionType and other deprecations 2022-07-27 17:56:36 +02:00
Chris Bono
482b945bfd Add KafkaStream interactive query sample app (#2461)
* Add KafkaStream interactive query sample app

* Remove KafkaStreams interactive query "basic" sample app
2022-07-25 18:07:59 -04:00
Oleg Zhurakousky
f1a0e76e80 GH-2452 Clean up bindings in Stream bridge once they are removed from cache
Resolves #2452
2022-07-25 16:37:54 +02:00
Oleg Zhurakousky
b9e30adf2f Wrap PollableBean in try/catch to accomodate AOT 2022-07-25 09:57:29 +02:00
Oleg Zhurakousky
88e5f88270 GH-2455 Fix the AOT Binding initialization logic
This commit also includes partial work to ensure framework works in full native/AOT mode.

Also, PollableBean remains and will simply not work in AOT mode until https://github.com/spring-projects/spring-framework/issues/28748 is resolved. That said, i will be deprecating t and it will be removed in the next release given that we already have configurable alternative

Resolves #2456
2022-07-22 13:53:51 +02:00
Chris Bono
59136c00d8 GH-2455 Add AOT support for binder child contexts
Fixes #2455
2022-07-22 13:53:43 +02:00
buildmaster
221c3e5b37 Bumping versions 2022-07-21 17:28:33 +00:00
Soby Chacko
ada56c4e0f Fixing Kafka binder build issues
Update maven surefire-plugin to 3.0.0-M7 to address an issue
with how the newly added GlobalEmbeddedKafkaTestExecutionListener
in spring-kafka-test loads configuration parameters. The current
versions (2.x) of the plugin are not properly loading these parameters.

https://maven.apache.org/surefire/download.cgi
2022-07-14 12:11:54 -04:00
Oleg Zhurakousky
f5f7e41010 Fix tests after SI update 2022-07-14 16:46:26 +02:00
Soby Chacko
89eb9a31d4 Code cleanup - Kafka Streams binder 2022-07-11 14:33:18 -04:00
buildmaster
bc72fc7155 Bumping versions 2022-06-30 17:38:59 +00:00
Chris Bono
0cb59496fe Make InteractiveQueryService only return used state stores
This restores the KafkaStreams 3.0 behavior in this area.

Fixes #2445
2022-06-25 22:09:19 -05:00
Pommerening, Nico
7554ff9bbd Kafka Streams binder health indicator improvements
Fix KafkaStreamsBinderHealthIndicator overriding HealthCheck Thread Details to report full details.

checkstyle fixes.
2022-06-23 14:20:04 -04:00
yiliu6
779ebfcf88 udpate outdated links and add link for service bus binder 2022-06-23 14:01:59 -04:00
Chris Bono
06ffe76c01 Improve KafkaStreams ineligible-definitions property handling
* KafkaStreamsBinderEnvironmentPostProcessor respects existing ineligible-definitions
* Add tests for KafkaStreamsBinderEnvironmentPostProcessor
2022-06-17 13:42:25 -04:00
Chris Bono
6d1be361fe Simplify SerdeResolverUtilsTests setting of ineligible-definitions 2022-06-17 13:40:19 -04:00