Skip to content
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

Added retries to service level methods that make persistence calls. #413

Merged
merged 7 commits into from
Oct 19, 2016
Merged

Added retries to service level methods that make persistence calls. #413

merged 7 commits into from
Oct 19, 2016

Conversation

ajoymajumdar
Copy link
Contributor

Using spring AOP, added a retry aspect for service methods that make persistence calls. Retries happen on exceptions - CannotGetJdbcConnectionException, CannotAcquireLockException, DeadlockLoserDataAccessException, OptimisticLockingFailureException, PessimisticLockingFailureException, ConcurrencyFailureException, QueryTimeoutException, TransientDataAccessResourceException

*/
@Autowired
public DataServiceRetryAspect(
@Value("${genie.data.service.retry.noOfRetries:5}") final int noOfRetries,
Copy link
Contributor

Choose a reason for hiding this comment

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

Change these to bind to a configuration properties class so we can better respond to code changes.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 88.679% when pulling 5bf0ab3 on ajoymajumdar:develop into fad4d64 on Netflix:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 88.679% when pulling 5f26c0f on ajoymajumdar:develop into dedbaaa on Netflix:develop.

@tgianos tgianos merged commit 8b0e6df into Netflix:develop Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants