Skip to content

Commit

Permalink
Removed timeout excessive logging in case of index is idle in replica…
Browse files Browse the repository at this point in the history
…tion (#1114) (#1115)

* Removed timeout excessive logging in case of index is idle in replication

Signed-off-by: Mohit Kumar <[email protected]>

* Removed timeout excessive logging in case of index is idle in replication

Signed-off-by: Mohit Kumar <[email protected]>

* Removed timeout excessive stack trace logging in case of index is idle in replication

Signed-off-by: Mohit Kumar <[email protected]>

* Removed timeout excessive stack trace logging in case of index is idle in replication

Signed-off-by: Mohit Kumar <[email protected]>

* Changed the log statement

Signed-off-by: Mohit Kumar <[email protected]>

---------

Signed-off-by: Mohit Kumar <[email protected]>
(cherry picked from commit 426a2de)

Co-authored-by: Mohit Kumar <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and mohitamg authored Sep 4, 2023
1 parent 022ca32 commit fefbcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/org/opensearch/replication/util/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ suspend fun <Req: ActionRequest, Resp: ActionResponse> 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)
Expand Down

0 comments on commit fefbcf8

Please sign in to comment.