-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quarkus REST: AsyncInvoker doesn't fire callbacks #42610
Comments
/cc @cescoffier (rest-client), @geoand (rest-client) |
The problem is that when you do:
you are not waiting for the Simply changing your code to something like:
makes things work as expected. |
I committed the mentioned correction into the project but testing it doesn't change anything. No exception is raised, showing that the statement Could you please confirm having tested it successfully ? Thanks. |
I'll take another look tomorrow, but I tried what I mentioned above and it worked as expected |
Could you please just test the reproducer I provided and confirm it works in your environment ? |
I tried your updated version and the |
This is surprising as it still doesn't work for me. I mean, So, it finished before the end. Any idea why and how to prevent that ? I thought that the effect of I'm showing below the execution listing:
|
Describe the bug
I'm using Quarkus 3.11.0 with the
quarkus-rest-client-jackson
extension to asynchronously invoke a simple REST service. Using the polling feature seems to work as expected but using the callback one doesn't. The callback doesn't get called.Expected behavior
Using statements like:
I expect that the
TimeCallback.completed()
method be invoked when the result of the REST endpoint is available.Actual behavior
The
TimeCallback.completed()
method isn't invoked.How to Reproduce?
In another terminal:
The tests will run successfully despite the statement
assertThat(false).isTrue();
in theTimeCallback.completed()
method, proving that it doesn't get called. The output of theSystem.out.println(...)
statements doesn't appear neither.Output of
uname -a
orver
Linux nicolas-XPS-13-9360 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
java version "21.0.4" 2024-07-16 LTS Java(TM) SE Runtime Environment (build 21.0.4+8-LTS-274) Java HotSpot(TM) 64-Bit Server VM (build 21.0.4+8-LTS-274, mixed mode, sharing)
Quarkus version or git rev
3.11.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9) Maven home: /opt/apache-maven-3.9.4 Java version: 21.0.4, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-21.0.4-oracle-x64 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-40-generic", arch: "amd64", family: "unix"
Additional information
None
The text was updated successfully, but these errors were encountered: