block / block/elasticgraph

Use allow_no_indices: true to avoid failures after manually deleted indices

Open
#589 2 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Ruby
Stars
88
Forks
36
Avg merge
5d 10h
Merged PRs (30d)
18

Description

If someone manually deletes an index via Kibana using `DELETE /my_index_rollover_2024-01`, we see failures from EG because it still attempts to search against the now-deleted indexes. Specifically, we see errors like `no such index [my_index_rollover_2024-01]`.

This is caused by EG caching the full list of indices and using that when it makes queries against OpenSearch.

From discussion, the solution would be to set `allow_no_indices: true` ([docs link](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-1)) to avoid these errors after indices are manually created.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.