From 426a2deb85bc3c58a3439e829e6902e68e6f658d Mon Sep 17 00:00:00 2001 From: Mohit Kumar <113413713+mohitamg@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:38:16 +0530 Subject: [PATCH] Removed timeout excessive logging in case of index is idle in replication (#1114) * Removed timeout excessive logging in case of index is idle in replication Signed-off-by: Mohit Kumar * Removed timeout excessive logging in case of index is idle in replication Signed-off-by: Mohit Kumar * Removed timeout excessive stack trace logging in case of index is idle in replication Signed-off-by: Mohit Kumar * Removed timeout excessive stack trace logging in case of index is idle in replication Signed-off-by: Mohit Kumar * Changed the log statement Signed-off-by: Mohit Kumar --------- Signed-off-by: Mohit Kumar --- src/main/kotlin/org/opensearch/replication/util/Extensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/opensearch/replication/util/Extensions.kt b/src/main/kotlin/org/opensearch/replication/util/Extensions.kt index 7a73fa5f..81aaa446 100644 --- a/src/main/kotlin/org/opensearch/replication/util/Extensions.kt +++ b/src/main/kotlin/org/opensearch/replication/util/Extensions.kt @@ -138,8 +138,8 @@ suspend fun Client.suspendExecuteWith } } log.warn( - "Encountered a failure while executing in $req. Retrying in ${currentBackoff / 1000} seconds" + - ".", retryException + "Encountered a failure(can be ignored) while getting changes: OpenSearchTimeoutException. Retrying in ${currentBackoff / 1000} seconds" + + "." ) delay(currentBackoff) currentBackoff = (currentBackoff * factor).toLong().coerceAtMost(maxTimeOut)