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

[BUG] Error adding "cluster.routing.allocation.balanced_shards_allocator.allocator_timeout" setting #16713

Closed
RamakrishnaChilaka opened this issue Nov 23, 2024 · 1 comment

Comments

@RamakrishnaChilaka
Copy link
Contributor

Describe the bug

Unable to set "cluster.routing.allocation.balanced_shards_allocator.allocator_timeout" setting in 2.13, while the same works in 2.15.

Related component

Other

To Reproduce

  1. Clone openserch
  2. checkout to 2.13
  3. Try to add this setting curl --location --request PUT 'http://localhost:9200/_cluster/settings' \ --header 'Content-Type: application/json' \ --data '{ "persistent" : { "cluster.routing.allocation.balanced_shards_allocator.allocator_timeout" : "30s" } }'
  4. Fails with {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"persistent setting [cluster.routing.allocation.balanced_shards_allocator.allocator_timeout], not recognized"}],"type":"illegal_argument_exception","reason":"persistent setting [cluster.routing.allocation.balanced_shards_allocator.allocator_timeout], not recognized"},"status":400}%

Expected behavior

The same works in 2.15

bcd07443cc66 % curl --location --request PUT 'http://localhost:9200/_cluster/settings' \
--header 'Content-Type: application/json' \
--data '{
  "persistent" : {
    "cluster.routing.allocation.balanced_shards_allocator.allocator_timeout" : "30s"
  }
}'
{"acknowledged":true,"persistent":{"cluster":{"routing":{"allocation":{"balanced_shards_allocator":{"allocator_timeout":"30s"}}}}},"transient":{}}%

Additional Details

Plugins
No plugin is enabled

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: macos
  • Version 2.13
@shwetathareja
Copy link
Member

@RamakrishnaChilaka this setting is present from OpenSearch 2.17 onwards.
Pull request - #15239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants