Skip to content

Commit

Permalink
shards assignment to local Node when fanout flag is disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Riya Saxena <[email protected]>
  • Loading branch information
riysaxen-amzn committed Dec 17, 2024
1 parent 96e415b commit c6f985a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class DocumentLevelMonitorRunner : MonitorRunner() {
* This is done to avoid de-dupe Alerts generated by Aggregation Sigma Rules
**/
val localNode = monitorCtx.clusterService!!.localNode()
val nodeMap: Map<String, DiscoveryNode> = if (monitor.fanoutEnabled == true) {
val nodeMap: Map<String, DiscoveryNode> = if (monitor?.fanoutEnabled == true) {
getNodes(monitorCtx)
} else {
logger.info("Fan-out is disabled for chained findings monitor ${monitor.id}")
Expand Down

0 comments on commit c6f985a

Please sign in to comment.