Skip to content

Commit

Permalink
Adjusted resolvedIndexes creation.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Feb 2, 2024
1 parent 9e5916a commit c1e9b4e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ class TransportGetRemoteIndexesAction @Inject constructor(
}

val resolvedIndexes: MutableList<String> = mutableListOf()
resolveIndexResponse?.indices?.forEach { resolvedIndexes.add(it.name) }
resolveIndexResponse?.aliases?.forEach { resolvedIndexes.add(it.name) }
if (resolveIndexResponse != null) {
resolveIndexResponse.indices.forEach { resolvedIndexes.add(it.name) }
resolveIndexResponse.aliases.forEach { resolvedIndexes.add(it.name) }
}
log.info("hurneyt TransportGetRemoteIndexesAction::resolvedIndexes = {}", resolvedIndexes)

val clusterIndexesMap = CrossClusterMonitorUtils.separateClusterIndexes(resolvedIndexes, clusterService)
Expand Down

0 comments on commit c1e9b4e

Please sign in to comment.