Skip to content

Commit

Permalink
Minor improvements (#345)
Browse files Browse the repository at this point in the history
Signed-off-by: Ravi Thaluru <6005951+thalurur@users.noreply.github.com>
  • Loading branch information
thalurur committed Apr 25, 2022
1 parent 6fbd669 commit 22913ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class ManagedIndexCoordinator(
val deletedIndices = event.indicesDeleted().map { it.name }
val allIndicesUuid = indexMetadataProvider.getMultiTypeISMIndexMetadata(indexNames = deletedIndices).map { (_, metadataMapForType) ->
metadataMapForType.values.map { it.indexUuid }
}.flatten()
}.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
2 changes: 1 addition & 1 deletion src/main/resources/mappings/opendistro-ism-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_meta" : {
"schema_version": 14
"schema_version": 15
},
"dynamic": "strict",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import javax.management.remote.JMXServiceURL

abstract class IndexManagementRestTestCase : ODFERestTestCase() {

val configSchemaVersion = 14
val configSchemaVersion = 15
val historySchemaVersion = 5

// Having issues with tests leaking into other tests and mappings being incorrect and they are not caught by any pending task wait check as
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_meta" : {
"schema_version": 14
"schema_version": 15
},
"dynamic": "strict",
"properties": {
Expand Down

0 comments on commit 22913ac

Please sign in to comment.