Skip to content

Commit

Permalink
Adds missed code
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Downs <[email protected]>
  • Loading branch information
downsrob committed Jul 7, 2022
1 parent fbb45fc commit 5232af9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class ManagedIndexCoordinator(
val managedIndices = getManagedIndices(event.indicesDeleted().map { it.uuid })
val deletedIndices = event.indicesDeleted().map { it.name }
val allIndicesUuid = indexMetadataProvider.getMultiTypeISMIndexMetadata(indexNames = deletedIndices).map { (_, metadataMapForType) ->
metadataMapForType.values
}
metadataMapForType.values.map { it.indexUuid }
}.flatten().toSet()
// Check if the deleted index uuid is still part of any metadata service in the cluster and has an existing managed index job
indicesToClean = event.indicesDeleted().filter { it.uuid in managedIndices.keys && !allIndicesUuid.contains(it.uuid) }
removeManagedIndexReq = indicesToClean.map { deleteManagedIndexRequest(it.uuid) }
Expand Down

0 comments on commit 5232af9

Please sign in to comment.