Skip to content

[8.x] Fields caps does not honour ignore_unavailable (#116021)#116430

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
drempapis:backport/8.x/pr-116021
Nov 7, 2024
Merged

[8.x] Fields caps does not honour ignore_unavailable (#116021)#116430
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
drempapis:backport/8.x/pr-116021

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 FieldCapabilitiesRequest 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 3ae7921)
@drempapis drempapis added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Nov 7, 2024
@elasticsearchmachine elasticsearchmachine merged commit bfefe8d into elastic:8.x Nov 7, 2024
@drempapis drempapis self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.17.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants