-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
ReactiveAdapterRegistry
is not compatible with Mutiny 2
#31000
Comments
ReactiveAdapterRegistry
is not compatible with Mutiny 2
I've made our |
Any chance of getting a backport in 5.3 ? |
I'm afraid that would be rather unusual since there is significant impact on the default setup of What's bringing Mutiny 2 into your 5.3.x stack, actually? Any chance you could upgrade to 6.1 in the near future in general? |
@jhoeller I have handcrafted such "solution" (val comes from Lombok ≈ final var):
As You know, ReactiveAdapterRegistry doesn't allow removing adapters :-( Probably you can add such method or search adapters backwards (to allow their "replacement")? About Mutiny 2 and Spring: we work with old code base and are trying to fix everything step by step. PS: I use org.reactivestreams.FlowAdapters from org.reactivestreams:reactive-streams:1.0.4 |
Oh good point that As for removing adapters, good point as well. I'll make sure that they are removable in some form and will backport that to 5.3.30. |
Actually, the simplest approach might indeed be to register a new adapter as an override, adding it first to the list (as an alternative to searching them backwards). So not identifying the old adapter for removal, just overriding it by a new adapter for the same reactive types which is being found first. I'm considering a new |
Mutiny 2 is based on the
java.util.concurrent.Flow
API instead of the Reactive Streams API. In other words,uni.convert().toPublisher()
returns ajava.util.concurrent.Flow.Publisher
instead of anorg.reactivestreams.Publisher
. However, theReactiveAdapterRegistry
class adapts to Mutiny 1, which leads to runtime errors with Mutiny 2.See https://smallrye.io/smallrye-mutiny/2.3.1/reference/migrating-to-mutiny-2/.
The text was updated successfully, but these errors were encountered: