Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Extract a function called createEligibleReplicas from prepDistributed() in HttpShardHandler.
This method takes a collection of all available replicas, a cluster state, onlyNrtReplicas boolean and a predicate and returns a list of eligible replicas.
This helps with readability and could be used to perform further refactoring in the future