Skip to content

Commit

Permalink
fixed the ktlint checks.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kravchuk <[email protected]>
  • Loading branch information
ikibo committed Oct 25, 2023
1 parent 0d969d2 commit 80524d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ class WaitForShrinkStep(private val action: ShrinkAction) : ShrinkStep(name, tru
val response: AcknowledgedResponse = context.client.admin().indices().suspendUntil { aliases(req, it) }
if (response.isAcknowledged) {
logger.info("Aliases switched successfully from [$sourceIndexName] to [$targetIndexName].")
return true
} else {
logger.error("Switching aliases from [$sourceIndexName] to [$targetIndexName] failed.")
}
logger.error("Switching aliases from [$sourceIndexName] to [$targetIndexName] failed.")
return false
response.isAcknowledged
} catch (e: Exception) {
logger.error("Switching aliases from [$sourceIndexName] to [$targetIndexName] failed due to exception.", e)
false
Expand Down

0 comments on commit 80524d5

Please sign in to comment.