Skip to content

Commit

Permalink
fix typo in alias message
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <[email protected]>
  • Loading branch information
sarthakaggarwal97 committed Mar 18, 2024
1 parent fa35a7f commit 85976f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ class AttemptRolloverStep(private val action: RolloverAction) : Step(name) {
"This index has already been rolled over using this alias, treating as a success [index=$index, alias=$alias]"

fun getSuccessCopyAliasMessage(index: String, newIndex: String) =
"Successfully rolled over and copied alias from [index=$index] to [index=$newIndex]"
"Successfully rolled over and copy alias from [index=$index] to [index=$newIndex]"

Check warning on line 418 in src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/step/rollover/AttemptRolloverStep.kt

View check run for this annotation

Codecov / codecov/patch

src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/step/rollover/AttemptRolloverStep.kt#L418

Added line #L418 was not covered by tests

fun getFailedCopyAliasMessage(index: String, newIndex: String) =
"Successfully rolled over but failed to copied alias from [index=$index] to [index=$newIndex]"
"Successfully rolled over but failed to copy alias from [index=$index] to [index=$newIndex]"

fun getCopyAliasNotAckMessage(index: String, newIndex: String) =
"Successfully rolled over but copy alias from [index=$index] to [index=$newIndex] is not acknowledged"
Expand Down

0 comments on commit 85976f9

Please sign in to comment.