-
Bug
-
Resolution: Done
-
Major
-
19.0.0.Beta1
-
None
When method annotated with @Fallback and @Retry fails, MP FT retry.callsSucceededRetried.total metric even though the method fails everytime and falls into a fallback method.
The issue is only in the metric. The method is retried as expected and fallback method is invoked only once as expected.
CDI Bean:
@Fallback(fallbackMethod = "isReadyFallback") @Retry(maxRetries = MAX_RETRIES) public boolean isReady() throws IOException { service.simulateOpeningResources(); return ready.get(); } public boolean isReadyFallback() { return readyInMainenance.get(); } @Counted(name = "simulation-count", absolute = true, displayName = "Simulation Count", description = "Number of simulateOpeningResources invocations", reusable = true) public void simulateOpeningResources() throws IOException { if (inMaintanance.get()) { throw new IOException("In maintanance"); } }
Smallrye issue
https://github.com/smallrye/smallrye-fault-tolerance/issues/159
- is incorporated by
-
WFLY-12988 Upgrade smallrye-fault-tolerance to 2.1.5
- Closed