Microprofile @Timeout annotation is not working for methods with rest-client request processing
See original GitHub issueDescribe the bug
If a method with rest-client request processing inside is marked with @Timeout annotation, long requests are not interrupted with Timeout exception. The reproducer is attached.
Expected behavior
Fault tolerance interceptors stop the method execution after a specific timeout.
Actual behavior
No response
How to Reproduce?
fault-tolerance-reproducer.zip
- run TimeoutTest
- It is not interrupted after a certain timeout
Output of uname -a
or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.0.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
MicroProfile REST Client 3.0 behavior changes - Open Liberty
In MicroProfile REST client 2.0 and earlier, you could use @Timeout annotation to set timeouts for synchronous REST client interface methods. This configuration ......
Read more >Timeout - Project - MicroProfile
A method or a class can be annotated with @Timeout , which means the method or the methods under the class will have...
Read more >WLPs MicroProfile (FaultTolerance) Timeout Implementation ...
For some URLs I consume, the Fault Tolerance timeout doesn't work. In my case I use RestClient. I solved my problem using the...
Read more >Using the REST Client - Quarkus
The MicroProfile REST client allows amending request headers by registering a ClientHeadersFactory with the @RegisterClientHeaders annotation. Let's see it in ...
Read more >Rest Client for MicroProfile
APPLICATION_JSON ("application/json"). Specifying Additional Client Headers. While it is always possible to add a @HeaderParam -annotated method ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i have the same problem, but my solution its no using more quarkus until really mature System. Bye quarkus
@alessandroAmedei can you create a reproducer for your problem?