Skip to content
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

CircuitBreaker incompatible with SpringBoot 3.2 + Kotlin suspend functions #2140

Open
malaquf opened this issue Mar 25, 2024 · 0 comments
Open

Comments

@malaquf
Copy link

malaquf commented Mar 25, 2024

Resilience4j version: 2.2.0

Hello!

On this commit, Spring introduced support for AOP with Kotlin coroutines.

In this case, if it detects a kotlin suspend function, it wraps the execution in a Mono.

As a result, this implementation, for example, does not work as expected, as the result is not yet resolved.

This could probably be resolved by detecting the Mono and resolving it during block() execution, but I assume other parts of the lib also need adjustments.

Thank you.

@malaquf malaquf changed the title CircuitBreaker incompatible with SpringBoot 3.2 + kotlin suspend functions CircuitBreaker incompatible with SpringBoot 3.2 + Kotlin suspend functions Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant