richardbadman opened a new pull request, #5427:
URL: https://github.com/apache/solr/pull/5427

   https://issues.apache.org/jira/browse/SOLR-18722
   
   # Description
   
   This PR ensures that the `REPLACENODE` and `MIGRATEREPLICAS` api calls 
filter out nondata nodes if no target is supplied.
   
   # Solution
   
   This is solved by using the `Assign.filterNonDataNodes` function when 
getting all live nodes when no target is supplied.
   
   # Tests
   
   I've created tests to ensure that when no target is supplied, but there are 
multiple data nodes and coordinator node available, then the coordinator node 
doesn't get selected and have replicas placed on them, and have made tests to 
assert that an exception is thrown if no target is supplied, but the only 
available node left is a coordinator node.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [x] I have reviewed the guidelines for [How to 
Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my 
code conforms to the standards described there to the best of my ability.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to