You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main branch shows the project with the netty runtime, and then all is working just fine. when I make a one letter change to the entire project change netty to jetty two tests start to fail. this is demonstrated on the jetty branch
The branch azure-function shows 3 tests failing when the project is an azure function. again with minimal changes
I have the same problem, I am working on migrating from micronaut 2.5.13 an application based on azure function (Micronaut runtime azure_function) to micronaut > 3.0 and I have the same problem with reactor.
AaldertVanWijk-TomTom
changed the title
Azure http function does not support returning a Mono from the controller when that Mono is created in a separate thread
Azure_function does not support returning a Mono from the controller when that Mono is created in a separate thread
Apr 28, 2022
Expected Behavior
I would expect to be able to use the ability of Micronaut to return mono's from the Controller
Actual Behaviour
Returning a mono in the controller results in an empty response, when the creation of that mono is actually done on a separate thread.
It's interesting, to see that there is no problem if we wrap the response in a flux:
Steps To Reproduce
As far as I can see returning a mono from an azure-http-function will fail when some of the work to create the mono is done on a separate thread.
I created a repository that shows the problem in it's shortest possible form.
https://github.com/AaldertVanWijk-TomTom/mono-with-azure-function/
The
main
branch shows the project with the netty runtime, and then all is working just fine. when I make a one letter change to the entire project change netty to jetty two tests start to fail. this is demonstrated on thejetty
branchThe branch
azure-function
shows 3 tests failing when the project is an azure function. again with minimal changesEnvironment Information
JDK 11
Example Application
https://github.com/AaldertVanWijk-TomTom/mono-with-azure-function/
Version
3.4.1
The text was updated successfully, but these errors were encountered: