这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Deepak-Vohra
Copy link
Contributor

No description provided.

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.
Copy link
Collaborator

@KevinGilmore KevinGilmore left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment not necessary

Copy link
Contributor Author

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**
Copy link
Collaborator

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

Copy link
Contributor Author

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;

Copy link
Collaborator

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

Copy link
Contributor Author

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);

Copy link
Collaborator

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

Copy link
Contributor Author

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();
}

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@KevinGilmore KevinGilmore merged commit 50218a9 into eugenp:master Oct 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants