From 9f6bcb57cec3ea463d9e700c0388cf2109eaa7fb Mon Sep 17 00:00:00 2001 From: t-muskans <t-muskans@microsoft.com> Date: Wed, 26 May 2021 11:26:36 +0530 Subject: [PATCH] log in retry --- .../osdu/indexer/azure/service/RetryPolicy.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java index cf363097d..0a329615b 100644 --- a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java +++ b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java @@ -18,23 +18,12 @@ import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; -import io.github.resilience4j.retry.Retry; import io.github.resilience4j.retry.RetryConfig; -import io.github.resilience4j.retry.RetryRegistry; import lombok.extern.java.Log; -import org.opengroup.osdu.core.common.http.FetchServiceHttpRequest; -import org.opengroup.osdu.core.common.http.UrlFetchServiceImpl; import org.opengroup.osdu.core.common.model.http.HttpResponse; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; import org.springframework.stereotype.Service; -import java.net.URISyntaxException; import java.time.Duration; -import java.util.function.Supplier; - -import static io.github.resilience4j.retry.RetryConfig.custom; -import static java.time.temporal.ChronoUnit.SECONDS; /** * This class handles retry configuration logic for calls made to <prefix>/storage/v2/query/records:batch @@ -76,7 +65,7 @@ public class RetryPolicy { notFoundElement.getAsJsonArray().isJsonNull()) { return false; } - log.info("Retry is set true for 3 attempts"); + log.info("Retry is set true"); return true; } } -- GitLab