From 7c69e091c81f585ebf5a1e96bfab862dab990191 Mon Sep 17 00:00:00 2001 From: Megha Goyal <56077967+goyamegh@users.noreply.github.com> Date: Thu, 18 Jul 2024 18:32:39 -0700 Subject: [PATCH] Enable cross-cluster monitor cluster setting (#1612) * Enable cross-cluster monitor cluster setting Signed-off-by: Megha Goyal * Update GetRemoteIndexesActionIT.kt Signed-off-by: Megha Goyal --------- Signed-off-by: Megha Goyal Co-authored-by: AWSHurneyt --- .../kotlin/org/opensearch/alerting/settings/AlertingSettings.kt | 2 +- .../opensearch/alerting/transport/GetRemoteIndexesActionIT.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/settings/AlertingSettings.kt b/alerting/src/main/kotlin/org/opensearch/alerting/settings/AlertingSettings.kt index 8ab7eee24..dc554b455 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/settings/AlertingSettings.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/settings/AlertingSettings.kt @@ -205,7 +205,7 @@ class AlertingSettings { val CROSS_CLUSTER_MONITORING_ENABLED = Setting.boolSetting( "plugins.alerting.cross_cluster_monitoring_enabled", - false, + true, Setting.Property.NodeScope, Setting.Property.Dynamic ) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt index 83e24332e..aef16d5ae 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/transport/GetRemoteIndexesActionIT.kt @@ -26,7 +26,7 @@ import java.util.* @Suppress("UNCHECKED_CAST") class GetRemoteIndexesActionIT : AlertingRestTestCase() { - private var remoteMonitoringEnabled = false + private var remoteMonitoringEnabled = true private var remoteClusters = listOf() private val mappingFieldToTypePairs1 = listOf(