You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case fallbackForQuery is not considered as recovery method.
If I comment out fallbackForSubmit recover method - than it works.
I've seen there were some changes introduced to allow to add @Retry(recoverName="recover1") in #85 , but it is not exactly my scenario since I'm not using @Retry annotation but rather retryTemplate.
Could you advise how should I proceed with my problem?
The text was updated successfully, but these errors were encountered:
Did you try @Retryable(recover=...) (note the spelling of both annotation name and attribute)? Or is it just that you need the @CircuitBreaker to alias that attribute before it will work? Your comment about "using retryTemplate" didn't make sense to me.
@dsyer Sorry, I completely forgot about this one. I'll try to remember from memory what was scenario (please allow some latitude - it was 2 years ago)
In one of my services I had to reach out to two external calls to different clients (urls) which could be unreliable, so decision was made to annotate both of them with @CIRCUITBREAKER. Two different @CIRCUITBREAKER weren't the problem, but eventually I needed two different @recover for each of them - and this couldn't be distinguished which @recover belongs to which @CIRCUITBREAKER. So yes, some alias or name of @CIRCUITBREAKER with corresponding alias or name of @recover should solve the problem.
In case of multiple
@Recover
method, apparently only one is considered, others are ignored.Example:
In my case fallbackForQuery is not considered as recovery method.
If I comment out fallbackForSubmit recover method - than it works.
I've seen there were some changes introduced to allow to add
@Retry(recoverName="recover1")
in #85 , but it is not exactly my scenario since I'm not using@Retry
annotation but rather retryTemplate.Could you advise how should I proceed with my problem?
The text was updated successfully, but these errors were encountered: