question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microprofile @Timeout annotation is not working for methods with rest-client request processing

See original GitHub issue

Describe 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

  1. run TimeoutTest
  2. 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:open
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pcaceresfcommented, Nov 17, 2022

i have the same problem, but my solution its no using more quarkus until really mature System. Bye quarkus

0reactions
michalszynkiewiczcommented, May 7, 2022

@alessandroAmedei can you create a reproducer for your problem?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found