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

Cannot update watcher index settings to set index.routing.allocation.include.role as described in the docs #104233

Open
masseyke opened this issue Jan 10, 2024 · 3 comments

Comments

@masseyke
Copy link
Member

masseyke commented Jan 10, 2024

Problem Description

Our documentation says that you can run watcher only on specific nodes by doing this:

PUT .watches/_settings
{
  "index.routing.allocation.include.role": "watcher"
}

However, in 8.0 .watches became a system index so you get this error if you try that:

"error" : {
"root_cause" : [
{
"type" : "illegal_state_exception",
"reason" : "Cannot override settings on system indices: [.watches*] -> [index.routing.allocation.include.role]"
}
],
"type" : "illegal_state_exception",
"reason" : "Cannot override settings on system indices: [.watches*] -> [index.routing.allocation.include.role]"
},
"status" : 500
}

We need to either fix this feature or remove it (its documentation anyway). A possible fix would be to add index.routing.allocation.include.role, index.routing.allocation.exclude.role, and index.routing.allocation.require.role to the list of valid properties for the /_watcher/settings API.

@masseyke masseyke added >bug needs:triage Requires assignment of a team area label :Data Management/Watcher and removed needs:triage Requires assignment of a team area label labels Jan 10, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jan 10, 2024
@dakrone dakrone changed the title Cannot run watcher on specific nodes Cannot update watcher index settings to set index.routing.allocation.include.role as described in the docs Jan 12, 2024
@mattc58 mattc58 added >enhancement and removed >bug labels Feb 7, 2024
@smartkathycat
Copy link

@masseyke May I know if any progress on this case? We hit the same issue with version 8.12. The current documentation still has the same instructions with updating watcher settings. It is very confusing.
https://www.elastic.co/guide/en/elasticsearch/reference/current/how-watcher-works.html#watch-execution

@masseyke
Copy link
Member Author

@smartkathycat I'm sorry you have run into this. We have not made any progress on this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants