[BUG] NodeVersionAllocationDecider should get Replication Type from index meta instead of node settings #12744
Labels
bug
Something isn't working
Cluster Manager
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
Storage:Remote
Describe the bug
The class org.opensearch.cluster.routing.allocation.decider.NodeVersionAllocationDecider misuses the node settings to get the replication type value. As INDEX_REPLICATION_TYPE_SETTING is an indexScope setting, we should get the value from the index metadata.
Related component
Cluster Manager
To Reproduce
Expected behavior
I believe the correct code should be like
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: