Skip to content

[8.x] _validate request does not honour ignore_unavailable (#116656)#116717

Merged
drempapis merged 1 commit intoelastic:8.xfrom
drempapis:backport/8.x/pr-116656
Nov 13, 2024
Merged

[8.x] _validate request does not honour ignore_unavailable (#116656)#116717
drempapis merged 1 commit intoelastic:8.xfrom
drempapis:backport/8.x/pr-116656

Conversation

@drempapis
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

The IndicesOption has been updated into the ValidateQueryRequest to encapsulate the following logic.

If we target a closed index and ignore_unavailable=false, we get an IndexClosedException, otherwise
 if the request contains ignore_unavailable=true, we safely skip the closed index.

(cherry picked from commit 9584d10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants