Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.13.0/2.13.0/OpenShift Amazon Linux 2023.4.20240401/Firefox
Describe the issue:
The alerts do not work. I created a very simple test alert and enabled it. But it does not get triggered. In the logs I find NPEs, exactly in the same rythm as I configured the monitor scheduler (1min). If I disable my alert, the NPE does not appear anymore:
2024-08-09T14:04:59,654][ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [procon-logging-master-4] uncaught exception in thread [DefaultDispatcher-worker-4]
java.lang.NullPointerException: null
at org.opensearch.alerting.MonitorRunnerService$runJob$2.invokeSuspend(MonitorRunnerService.kt:335) ~[opensearch-alerting-2.13.0.0.jar:2.13.0.0]
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-1.8.21.jar:1.8.21-release-380(1.8.21)]
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:285) [kotlinx-coroutines-core-1.1.1.jar:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594) [kotlinx-coroutines-core-1.1.1.jar:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60) [kotlinx-coroutines-core-1.1.1.jar:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742) [kotlinx-coroutines-core-1.1.1.jar:?]
uncaught exception in thread [DefaultDispatcher-worker-4]
java.lang.NullPointerException
at org.opensearch.alerting.MonitorRunnerService$runJob$2.invokeSuspend(MonitorRunnerService.kt:335)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:285)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
Configuration:
Relevant Logs or Screenshots: