Skip to content

Commit

Permalink
Fix debug log for missing ISM config index (#846)
Browse files Browse the repository at this point in the history
* Does not sweep if cluster doesn't contain an ISM Config Index

Signed-off-by: Ronnak Saxena <[email protected]>

* fixed the warn message

Signed-off-by: Ronnak Saxena <[email protected]>

* changed log from warn to debug

Signed-off-by: Ronnak Saxena <[email protected]>

---------

Signed-off-by: Ronnak Saxena <[email protected]>
  • Loading branch information
ronnaksaxena committed Jul 10, 2023
1 parent 77e8fd0 commit 99df725
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ class ManagedIndexCoordinator(
*/
@OpenForTesting
suspend fun sweepClusterChangedEvent(event: ClusterChangedEvent) {
// If IM config doesn't exist skip
if (!ismIndices.indexManagementIndexExists()) {
logger.debug("[.opendistro-ism-config] config index does not exist")
return
}
// indices delete event
var removeManagedIndexReq = emptyList<DocWriteRequest<*>>()
var indicesToClean = emptyList<Index>()
Expand Down

0 comments on commit 99df725

Please sign in to comment.