Commit Graph

3739 Commits

Author SHA1 Message Date
Soby Chacko
0612ea85f7 Event type routing and deserialization issues (#2633)
* Event type routing and deserialization issues

In Kafka Streams binder, deserialization exception handler
does not take effect when event type routing is enabled.
Fixing this issue by allowing the applications to use the
configured or inferred Serde rather than the byte[] Serde
used by the event type router initially.

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

* Addressing PR review
2023-01-24 21:49:45 -05:00
abilan
64aef347e4 Add BindingService.get*Binding(s)(String) API
There are some use-cases when we need to know upfront
if specific binding is really bound.
The goal is to prevent some security vulnerabilities
when too many unexpected dynamic bindings, e.g.
via router based on the `StreamBridge`.
The `BindingService` provides for us `getProducerBindingNames()`
 and `getConsumerBindingNames()` which are not optimal
 for the task to check for binding presence

* Introduce `BindingService.getProducerBinding(String bindingName)`
and `getConsumerBindings(String bindingName)` to cover a use-case
when we need to check for predefined bindings.
This API might be useful in other use-case when we need to get
access to managed bindings

Related to: https://github.com/spring-cloud/stream-applications/issues/330
2023-01-23 15:19:04 +01:00
Byungjun You
82a863d0f0 Remove the gitter chat badge in the README 2023-01-23 15:18:03 +01:00
Oleg Zhurakousky
446d066c1d GH-2626 Fix documentation related to explicit binding name change 2023-01-19 15:44:15 +01:00
Oleg Zhurakousky
6f86e28b48 GH-2612 Fix initialization ordering issue with actuator endpoints
this also includes improvement where channels are now retrieved dynamically allowing new channels created during the runtime of the application to be visible as well
Resolves #2612
2023-01-19 15:14:28 +01:00
Byungjun You
02241661a5 fix @return tag comment for retryAndDlqInBinding 2023-01-19 14:00:05 +01:00
Oleg Zhurakousky
df289bc65d GH-2626 Ensure explicit binding names are not modified
See issue for more details
Resolves #2626
2023-01-19 10:29:05 +01:00
Oleg Zhurakousky
e8a2018b08 GH-2624 Ensure BindableFunctionProxyFactory is aware of no-corresponding-function bindings
Resolves #2624
2023-01-18 15:30:04 +01:00
Byungjun You
2cd7d07ba8 Replace hardcoded "UTF-8" with StandardCharsets.UTF_8 2023-01-17 15:40:36 +01:00
Oleg Zhurakousky
bf75046fb1 GH-2262 Ensure BindingHandlerAdvise is propagated to binder context
During multiple binder scenarious BindingHandlerAdvise must be propagated to binder context to ensure that default properties are properly bound

    Resolves #2262
2023-01-13 08:13:31 +01:00
Oleg Zhurakousky
3be95190be GH-2563 Add warning when SB is sending to input binding
Resolves #2563
2023-01-11 18:54:10 +01:00
Byungjun You
130a295d04 fix the default DLT name in kafka_tips.adoc 2023-01-11 12:08:44 -05:00
Oleg Zhurakousky
a479f5a836 Clean deprecations 2023-01-11 17:27:22 +01:00
Oleg Zhurakousky
9fe6db2e56 Follow up on SCF GH-985, test to validate PassThruFunction 2023-01-11 16:45:56 +01:00
Soby Chacko
8b0fbe122f Allow fine tuning of StoreQueryParameters (#2618)
Add StoreQueryParametersCustomizer to InteractiveQueryService 
in Kafka Streams binder.

Fixes #2608
2023-01-10 18:11:09 -06:00
Byungjun You
a8114cee9a Fix typos in kafka_tips.adoc 2023-01-10 11:24:07 -05:00
Soby Chacko
33e58a0baa Minor code cleanup/deprecation removal etc. 2023-01-10 11:09:25 -05:00
Soby Chacko
b1ebc457fd StreamBridge and KafkaNull
When sending KafkaNull over StreamBridge, we need to repackage the
potential null result back into KafkaNull.
2023-01-09 20:03:48 -05:00
Oleg Zhurakousky
2ff6938bc6 Revert "Polish previous commit"
This reverts commit 6e958e0dda.
2023-01-09 16:06:20 +01:00
Oleg Zhurakousky
add568126c GH-2590 Fix logic to determine if function is a RoutingFunction
Resolves #2590
2023-01-06 12:19:31 +01:00
Oleg Zhurakousky
6e958e0dda Polish previous commit 2023-01-06 10:13:40 +01:00
Soby Chacko
005dcfa638 Enable KafkaNull converter tests
Enable a test that uses StreamBridge and KafkaNull together.

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

Need this PR from Spring Cloud Function merged first:
https://github.com/spring-cloud/spring-cloud-function/pull/981
2023-01-06 10:07:12 +01:00
Oleg Zhurakousky
e23a6078a7 GH-2596 Ensure that bean propagation between binder and app context is timely
Resolves #2596
2023-01-06 08:40:50 +01:00
Oleg Zhurakousky
a9196584d2 GH-2599 Fix error binding when mapped to multiple destinations
Resolves #2599
2023-01-05 15:18:45 +01:00
Oleg Zhurakousky
686a75c077 GH-2610 Fix default error handling
Ensures that default error handling is preserved if user did not define binder specific error handler

Resolves #2610
2023-01-05 15:02:29 +01:00
Soby Chacko
8fb166fc58 Fix test binder docs
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2598
2023-01-04 16:57:45 +01:00
Oleg Zhurakousky
3318e14c60 GH-2602 Follow up to the previous commit 2023-01-04 16:56:05 +01:00
Oleg Zhurakousky
6b4b79e33c GH-2602 Fix PollableMessageSource lifecycle
Resolves #2602
2023-01-04 15:56:32 +01:00
Byungjun You
3f3d712a84 Fix a message index in kafka binder test 2023-01-03 15:51:40 -05:00
Filip Panovski
9e31e2eae1 Extend docs on default partitioning strategy in Kafka binder
- Resolves GH-2467
2023-01-03 15:50:11 -05:00
刘鑫
af2df8ba0e some new features of jdk to optimize the code 2023-01-03 14:09:58 +01:00
Byungjun You
14edf04189 Remove dead code in test 2023-01-03 14:08:41 +01:00
Oleg Zhurakousky
b8a492bf90 Kotlin cleanup 2022-12-27 15:42:36 +01:00
buildmaster
9718bbd13f Bumping versions 2022-12-20 17:27:28 +00:00
buildmaster
d40e733221 Bumping versions 2022-12-18 17:27:01 +00:00
buildmaster
f1d4f8a53e Bumping versions 2022-12-16 17:26:47 +00:00
buildmaster
2d9b82fc3f Bumping versions to 4.0.1-SNAPSHOT after release 2022-12-15 20:22:20 +00:00
buildmaster
203e4895b5 Going back to snapshots 2022-12-15 20:22:19 +00:00
buildmaster
b368d681fa Update SNAPSHOT to 4.0.0 2022-12-15 20:18:09 +00:00
spencergibb
e7d2674b1a ignore surefile plugin milestone for release 2022-12-15 09:47:03 -05:00
Soby Chacko
1edbd4abba Docs cleanup
Remove all references to EnableBinding/StreamListener from the docs

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2589
2022-12-13 17:29:37 -05:00
Soby Chacko
26be90d720 Fixing AOT compilation with multi binders
When default binder is provided and multiple binder types are
present on the classpath, then the binder requested as default
is not instantiated when compiling in AOT mode.

Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2584
2022-12-13 03:55:35 -08:00
Soby Chacko
7a3f0f8197 StreamOperations interface for StreamBridge
Resolves https://github.com/spring-cloud/spring-cloud-stream/issues/2548
2022-12-13 03:54:57 -08:00
Soby Chacko
dc2554c83d Fixing checkstyle 2022-12-12 16:33:10 -05:00
Soby Chacko
f500883994 Observation related changes in Kafka binder (#2582)
* Observation related changes in Kafka binder

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

* Follow up to the previous commit on observation changes

* Address PR review

* Addressing PR review

* Addressing PR review
2022-12-12 15:56:01 -05:00
Oleg Zhurakousky
fde2c9e51a Make integration (test) binder default when multiple binders are available 2022-12-07 16:00:10 -08:00
Soby Chacko
13399dcd5f Binder instantiation changes
- When default binder is provided, consider it while instantiating the binder.
   This is needed for AOT/Native applications that provide a default binder.

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

Resolves #2579
2022-12-07 14:53:26 -08:00
Oleg Zhurakousky
474ee07086 GH-2566 Make test binder an auto-configuration
Resolves #2566
2022-12-07 14:15:28 -08:00
유병준[Plasma1]
764a90720a fix a broken link for kafka transaction reference 2022-12-07 10:47:12 -05:00
sai
3c7c5230c6 Fix typo in ListenerContainerWithDlqAndRetryCustomizer example of kafka binder 2022-12-05 17:27:27 -05:00