Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_field_caps doesn't honour ignore_unavailable option with closed index #107767

Closed
bpintea opened this issue Apr 23, 2024 · 2 comments · Fixed by #116021
Closed

_field_caps doesn't honour ignore_unavailable option with closed index #107767

bpintea opened this issue Apr 23, 2024 · 2 comments · Fixed by #116021
Assignees
Labels
>bug priority:normal A label for assessing bug priority to be used by ES engineers :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@bpintea
Copy link
Contributor

bpintea commented Apr 23, 2024

Elasticsearch Version

8.14, also current master (@8201172)

Installed Plugins

No response

Java Version

bundled

OS Version

macos

Problem Description

Querying an inexistent index'es _field_caps with ignore_unavailable=true will work (returns no caps).
The same, but with an existing and closed index fails with cluster_block_exception.

Steps to Reproduce

  1. PUT myindex
  2. POST myindex/_close
  3. GET myindex/_field_caps?fields=*&ignore_unavailable=true

Logs (if relevant)

Last step will fail with:

{
    "error": {
        "root_cause": [
            {
                "type": "cluster_block_exception",
                "reason": "index [myindex] blocked by: [FORBIDDEN/4/index closed];"
            }
        ],
        "type": "cluster_block_exception",
        "reason": "index [myindex] blocked by: [FORBIDDEN/4/index closed];"
    },
    "status": 403
}
@bpintea bpintea added >bug :Search/Search Search-related issues that do not fall into other categories labels Apr 23, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Apr 23, 2024
@javanna javanna added the priority:normal A label for assessing bug priority to be used by ES engineers label Jun 17, 2024
@javanna javanna added :Search Foundations/Search Catch all for Search Foundations and removed :Search/Search Search-related issues that do not fall into other categories labels Jul 17, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 17, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine elasticsearchmachine removed the Team:Search Meta label for search team label Jul 17, 2024
@javanna javanna added :Search Foundations/Mapping Index mappings, including merging and defining field types and removed :Search Foundations/Search Catch all for Search Foundations labels Jul 17, 2024
@drempapis drempapis self-assigned this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug priority:normal A label for assessing bug priority to be used by ES engineers :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants