Skip to content

_validate request does not honour ignore_unavailable#116656

Merged
drempapis merged 5 commits intoelastic:mainfrom
drempapis:_validate_does_not_honour_ignore_unavailable
Nov 13, 2024
Merged

_validate request does not honour ignore_unavailable#116656
drempapis merged 5 commits intoelastic:mainfrom
drempapis:_validate_does_not_honour_ignore_unavailable

Conversation

@drempapis
Copy link
Copy Markdown
Contributor

@drempapis drempapis commented Nov 12, 2024

Querying an existing and closed index fails with cluster_block_exception when the _validate with ignore_unavailable=true is called.

Similar case to #116021
Closes #116594

@drempapis drempapis added >bug backport Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations v9.0.0 v8.17.0 labels Nov 12, 2024
@drempapis drempapis changed the title Validate request does not honour ignore_unavailable _validate request does not honour ignore_unavailable Nov 12, 2024
@drempapis
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

Copy link
Copy Markdown
Member

@piergm piergm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😄 Thanks for working on this @drempapis

@drempapis
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

@drempapis drempapis merged commit 9584d10 into elastic:main Nov 13, 2024
@javanna javanna removed the backport label Nov 13, 2024
@javanna
Copy link
Copy Markdown
Contributor

javanna commented Nov 13, 2024

@drempapis did you mean to backport this to 8.x as well?

@drempapis
Copy link
Copy Markdown
Contributor Author

drempapis commented Nov 13, 2024

@drempapis did you mean to backport this to 8.x as well?

Yes, that was my intention. I read the doc that I had to use the auto-backport label instead. I'll do the backport manually! :)

@drempapis
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

drempapis added a commit to drempapis/elasticsearch that referenced this pull request Nov 13, 2024
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)
drempapis added a commit that referenced this pull request Nov 13, 2024
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.
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Nov 13, 2024
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.
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Nov 14, 2024
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.
jughosta added a commit to elastic/kibana that referenced this pull request Nov 19, 2024
…#199717)

- Closes: #199413
- Related: #199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 19, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit f61c043)
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
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.
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…elastic#199717)

- Closes: elastic#199413
- Related: elastic#199654
- Related ES PR: elastic/elasticsearch#116021
- Related ES PR: elastic/elasticsearch#116656

## Summary

This PR unskips tests and updates the Kibana API to the updated ES
responses.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@drempapis drempapis self-assigned this Dec 17, 2024
@drempapis drempapis deleted the _validate_does_not_honour_ignore_unavailable branch January 22, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_validate doesn't honour ignore_unavailable option with closed index

4 participants