Skip to content

Commit

Permalink
use updated index names while process findings
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Jan 11, 2024
1 parent c683e63 commit 4f90cc2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
val transformedDocs = mutableListOf<Pair<String, TransformedDocDto>>()
val docsSizeInBytes = AtomicLong(0)
val concreteIndicesSeenSoFar = mutableListOf<String>()
val updatedIndexNames = mutableListOf<String>()
docLevelMonitorInput.indices.forEach { indexName ->

var concreteIndices = IndexUtils.resolveAllIndices(
Expand All @@ -184,6 +185,7 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
}
concreteIndicesSeenSoFar.addAll(concreteIndices)
val updatedIndexName = indexName.replace("*", "_")
updatedIndexNames.add(updatedIndexName)
val conflictingFields = monitorCtx.docLevelMonitorQueries!!.getAllConflictingFields(
monitorCtx.clusterService!!.state(),
concreteIndices
Expand Down Expand Up @@ -245,7 +247,7 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
docsToQueries,
transformedDocs,
docsSizeInBytes,
docLevelMonitorInput.indices,
updatedIndexNames,
concreteIndicesSeenSoFar
)
}
Expand All @@ -259,7 +261,7 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
docsSizeInBytes,
monitor,
monitorMetadata,
docLevelMonitorInput.indices,
updatedIndexNames,
concreteIndicesSeenSoFar,
inputRunResults,
docsToQueries
Expand Down

0 comments on commit 4f90cc2

Please sign in to comment.