-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore context decorator #2007
Restore context decorator #2007
Conversation
0d704ad
to
b2fee86
Compare
f3e0fa4
to
0a875ba
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2007 +/- ##
============================================
+ Coverage 77.26% 77.40% +0.13%
- Complexity 3462 3473 +11
============================================
Files 293 294 +1
Lines 11638 11656 +18
Branches 1486 1488 +2
============================================
+ Hits 8992 9022 +30
+ Misses 1948 1942 -6
+ Partials 698 692 -6
|
0a875ba
to
9e1a587
Compare
@@ -110,7 +110,7 @@ | |||
<jandex-maven-plugin.version>1.2.3</jandex-maven-plugin.version> | |||
|
|||
<nats-embedded.version>2.1.0</nats-embedded.version> | |||
<slf4j-log4j12.version>2.0.5</slf4j-log4j12.version> | |||
<slf4j-log4j12.version>1.7.36</slf4j-log4j12.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should ban slf4j 2 for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed the dependabot config (I think)
Restores ContextDecorator removed in 3.22.0. Its removal caused stream transformers to dispatch messages on EventLoopContext instead of message duplicated context. See quarkusio/quarkus#23612 (comment)
The removal of ContextDecorator was an attempt to resolve the issue of message drops on Kafka multiple partitions setup. After investigation, the message drops resulted from Mutiny https://github.com/smallrye/smallrye-mutiny/blob/main/implementation/src/main/java/io/smallrye/mutiny/helpers/HalfSerializer.java being called
onItem
concurrently.In order to resolve this, this change removes unnecessary wrappings of Multi`s, which itself wraps subscribers in https://github.com/smallrye/smallrye-mutiny/blob/main/implementation/src/main/java/io/smallrye/mutiny/helpers/StrictMultiSubscriber.java
This change also moves KafkaConnector to the InboundConnector OutboundConnector API which exposes Publisher/Subscribers in Connectors instead of PublisherBuilder and SubscriberBuilder.