From f4b3c4989984c32b05846a51efa60ba79c872850 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Mon, 13 Nov 2023 15:44:43 +0530 Subject: [PATCH] fix : downgrade version to verify if eureka client is working --- catalog-service/pom.xml | 2 +- .../src/main/resources/application-local.properties | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/catalog-service/pom.xml b/catalog-service/pom.xml index 161391ef..ab1122b1 100644 --- a/catalog-service/pom.xml +++ b/catalog-service/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.2.0-RC2 + 3.2.0-RC1 com.example.catalogservice diff --git a/catalog-service/src/main/resources/application-local.properties b/catalog-service/src/main/resources/application-local.properties index 938a8ca9..d815ca27 100644 --- a/catalog-service/src/main/resources/application-local.properties +++ b/catalog-service/src/main/resources/application-local.properties @@ -30,10 +30,14 @@ resilience4j.ratelimiter.instances.default.limitRefreshPeriod=10s resilience4j.ratelimiter.instances.default.timeoutDuration=3s resilience4j.ratelimiter.instances.default.registerHealthIndicator=true #resilience4j.retry.retryAspectOrder=2 -resilience4j.retry.instances.product-api.enableExponentialBackoff=true -resilience4j.retry.instances.product-api.exponentialBackoffMultiplier=2 -resilience4j.retry.instances.product-api.maxAttempts=3 -resilience4j.retry.instances.product-api.waitDuration=1s +resilience4j.retry.configs.default.maxAttempts=3 +resilience4j.retry.configs.default.waitDuration=100 +resilience4j.retry.configs.default.retryExceptions[0]=org.springframework.web.client.HttpServerErrorException +resilience4j.retry.configs.default.retryExceptions[1]=java.util.concurrent.TimeoutException +resilience4j.retry.configs.default.retryExceptions[2]=java.io.IOException +resilience4j.retry.configs.default.ignoreExceptions[0]=com.example.catalogservice.exception.ProductNotFoundException +resilience4j.retry.instances.default.baseConfig=default +resilience4j.retry.instances.getInventoryByProductCodes.baseConfig=default #resilience4j.circuitbreaker.circuitBreakerAspectOrder=1 resilience4j.circuitbreaker.instances.default.registerHealthIndicator=true resilience4j.circuitbreaker.instances.default.slidingWindowSize=5