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

ILM: Index wildcard pattern does not work for retry API when there are step errors #38987

Open
ppf2 opened this issue Feb 15, 2019 · 1 comment
Assignees
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team

Comments

@ppf2
Copy link
Member

ppf2 commented Feb 15, 2019

6.6.0

When there are no step errors for the indices requested using the retry api, it will return a response indicating as such.

POST logstash-app1*/_ilm/retry

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "cannot retry an action for an index [logstash-app1-2019.02.15.19-000002] that has not encountered an error when running a Lifecycle Policy"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "cannot retry an action for an index [logstash-app1-2019.02.15.19-000002] that has not encountered an error when running a Lifecycle Policy"
  },
  "status": 400
}

When there are actually step errors for the indices that are covered as part of the wildcard pattern, the same retry request throws a Bad Request error as if it no longer knows how to process the wildcard pattern. (If I then issue the retry against individual indices logstash-app1-2019.02.15.19-000001, logstash-app1-2019.02.15.19-000002, etc..), the retry works. So this is specific to using wildcard pattern to tell the retry API to retry on multiple indices covered by the wildcard pattern.

POST logstash-app1*/_ilm/retry

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "index [logstash-app1] does not exist"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "index [logstash-app1] does not exist"
  },
  "status": 400
}
@ppf2 ppf2 added the :Data Management/ILM+SLM Index and Snapshot lifecycle management label Feb 15, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@gwbrown gwbrown self-assigned this Feb 19, 2019
@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

4 participants