Co-authored-by: Howard <danielhuang@tencent.com>
This commit is contained in:
parent
5df043d0e0
commit
cb4c21fa7b
|
@ -140,7 +140,7 @@ public final class AutoExpandReplicas {
|
|||
}
|
||||
|
||||
/**
|
||||
* Checks if the are replicas with the auto-expand feature that need to be adapted.
|
||||
* Checks if there are replicas with the auto-expand feature that need to be adapted.
|
||||
* Returns a map of updates, which maps the indices to be updated to the desired number of replicas.
|
||||
* The map has the desired number of replicas as key and the indices to update as value, as this allows the result
|
||||
* of this method to be directly applied to RoutingTable.Builder#updateNumberOfReplicas.
|
||||
|
|
|
@ -262,7 +262,7 @@ public class AllocationService {
|
|||
}
|
||||
|
||||
/**
|
||||
* Checks if the are replicas with the auto-expand feature that need to be adapted.
|
||||
* Checks if there are replicas with the auto-expand feature that need to be adapted.
|
||||
* Returns an updated cluster state if changes were necessary, or the identical cluster if no changes were required.
|
||||
*/
|
||||
public ClusterState adaptAutoExpandReplicas(ClusterState clusterState) {
|
||||
|
|
Loading…
Reference in New Issue