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

Excluding some attribute from allocation filter overrides the existing exclusion attributes #1716

Closed
jainankitk opened this issue Dec 13, 2021 · 0 comments
Labels
bug Something isn't working distributed framework

Comments

@jainankitk
Copy link
Contributor

Describe the bug
Excluding some attribute from allocation filter overrides the existing exclusion attributes. Same is the case for include/require as FilterAllocationDecider recreates the filters from the difference passed to settings update consumer

To Reproduce
Steps to reproduce the behavior:
Exclude an ip from cluster settings:

curl -H "Content-Type: application/json" -XPUT localhost:9200/_cluster/settings -d '{
    "transient" : {
        "cluster.routing.allocation.exclude._ip" : "10.212.1.19"
    }
}'

Exclude another attribute say zone:

curl -H "Content-Type: application/json" -XPUT localhost:9200/_cluster/settings -d '{
    "transient" : {
        "cluster.routing.allocation.exclude.zone" : "us-west-2a"
    }
}'

Even though cluster setting shows both ip and zone, only zone filtering is honored as it was applied later

Expected behavior
For the reproduced behavior, both zone and ip exclusion should have been honored

Host/Environment (please complete the following information):

  • Impacts all Opensearch versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework
Projects
None yet
Development

No branches or pull requests

2 participants