-
Notifications
You must be signed in to change notification settings - Fork 54k
BAEL-9469 Accept maxAttempts(0) #18867
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
Conversation
Refactor retry policy to use builder pattern and add a new bean for testing maxAttempts(0) functionality.
Added a new test case to verify behavior when maxAttempts is set to 0, ensuring no retries occur.
Added reactive retry service and recovery method for reactive types.
Added a reactive implementation for retry service with a recovery method.
Removed reactor-core dependency from pom.xml
Removed reactive retry service and its recover method.
KevinGilmore
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See notes regarding whitespace-only changes (revert them) and the comment lines that aren't necessary.
|
|
||
| @Autowired | ||
| private RetryTemplate retryTemplate; | ||
| // Autowire the new template configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
| }); | ||
| } | ||
|
|
||
| // **New test case for maxAttempts(0) - no retry should occur** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment not necessary - the method name explains its purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
|
|
||
| import java.sql.SQLException; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid whitespace-only changes in PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. please verify.
| @Recover | ||
| void recover(SQLException e, String sql); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid whitespace-only changes in PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. please verify.
| logger.info("throw RuntimeException in method templateRetryService()"); | ||
| throw new RuntimeException(); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid whitespace-only changes in PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Refactor SpringRetryIntegrationTest to autowire new template configuration and clean up comments.
No description provided.