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

@Retry only works on endpoints #46427

Open
Plawn opened this issue Feb 21, 2025 · 2 comments
Open

@Retry only works on endpoints #46427

Plawn opened this issue Feb 21, 2025 · 2 comments
Labels
area/fault-tolerance kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.

Comments

@Plawn
Copy link

Plawn commented Feb 21, 2025

Describe the bug

As per https://quarkus.io/guides/smallrye-fault-tolerance#adding-resiliency-retries

I'm trying to use @Retry, but it only works on endpoints and when using it on a service @ApplicationScoped it does not give me errors or warning about not being properly used

Output of java -version

Java 21

Quarkus version or git rev

3.18.4

Build tool (ie. output of mvnw --version or gradlew --version)

maven

Copy link

quarkus-bot bot commented Feb 22, 2025

/cc @Ladicek (fault-tolerance)

@Ladicek
Copy link
Contributor

Ladicek commented Feb 24, 2025

Using @Retry on an @ApplicationScoped CDI bean absolutely works and is tested. It can be put either on a class or on a method -- except of private methods, those are not intercepted. Can you add a reproducer @Plawn?

@geoand geoand added the triage/needs-reproducer We are waiting for a reproducer. label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/fault-tolerance kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.
Projects
None yet
Development

No branches or pull requests

4 participants