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
重试配置maxRetryCount不生效 #111
Comments
你的 MyRetryCondition 是如何定义的? |
感谢作者,我知道怎么回事了,应该过滤token接口的重试 |
好的,不客气 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本:
com.dtflys.forest
forest-spring-boot-starter
1.5.16
配置
@Retry(maxRetryCount = "1", condition = MyRetryCondition.class)
当业务返回码为异常值时,MyRetryCondition返回true,请求会一直重试
跟踪进代码发现,每次重试记录重试次数的变量都为一个新的对象
private AtomicInteger currentRetryCount = new AtomicInteger(0);
The text was updated successfully, but these errors were encountered: