mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 02:18:42 +00:00
The way we check for the triggered watches on start-up did not take into account that an index could be closed and thus resulted in an NPE. This commit adds a check to ensure that the watch index and triggered watches index are open, before trying to check if all primary shards are active. Original commit: elastic/x-pack-elasticsearch@ee05779963