[DOCS] Fix typo in adapt auto expand replica comments (#60187) (#60239)

Co-authored-by: Howard <danielhuang@tencent.com>
This commit is contained in:
James Rodewig 2020-07-27 14:18:53 -04:00 committed by GitHub
parent 5df043d0e0
commit cb4c21fa7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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. * 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 * 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. * of this method to be directly applied to RoutingTable.Builder#updateNumberOfReplicas.

View File

@ -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. * Returns an updated cluster state if changes were necessary, or the identical cluster if no changes were required.
*/ */
public ClusterState adaptAutoExpandReplicas(ClusterState clusterState) { public ClusterState adaptAutoExpandReplicas(ClusterState clusterState) {