Changes

Summary

  1. Introduce JdbcRetryAopConfig for per-query retry logic: (details)
  2. - Fix detection of empty result-set for "jdbcTemplate.query()" method. (details)
Commit c238dae3cba18a6c3b7a93d02375b352c562218e by Lampros Smyrnaios
Introduce JdbcRetryAopConfig for per-query retry logic:
- Add JdbcRetryAopConfig to apply Spring Retry via AOP on all JdbcOperations methods.
- Configure RetryTemplate with exponential backoff and maxAttempts.
- Implement RetryOperationsInterceptor and Advisor to intercept JdbcTemplate calls.
- Add optional RetryListener for logging attempt count, method, and target.
- Ensure each individual DB query is retried independently on transient/connection errors.
The file was modifiedsrc/main/resources/application.yml (diff)
The file was modifiedbuild.gradle (diff)
The file was addedsrc/main/java/eu/openaire/pdf_aggregation_statistics/configurations/JdbcRetryAopConfig.java
Commit c5c2c25d18d5aff2b1fca907297814b8853d1007 by Lampros Smyrnaios
- Fix detection of empty result-set for "jdbcTemplate.query()" method.
- Code polishing.
The file was modifiedsrc/main/java/eu/openaire/pdf_aggregation_statistics/services/StatsServiceImpl.java (diff)