Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/916#discussion_r156409964
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/entity/group/DynamicClusterImpl.java ---
    @@ -799,6 +795,12 @@ protected Entity replaceMember(Entity member, 
@Nullable Location memberLoc, Map<
         /** <strong>Note</strong> for sub-classes; this method can be called 
while synchronized on {@link #mutex}. */
         protected Collection<Entity> grow(int delta) {
             Preconditions.checkArgument(delta > 0, "Must call grow with 
positive delta.");
    +        Integer maxSize = config().get(MAX_SIZE);
    +        final int desiredSize = getCurrentSize() + delta;
    +        if (maxSize != null && desiredSize > maxSize) {
    --- End diff --
    
    Which `MIN_SIZE` are you referring to? You only added the max in 
https://github.com/apache/brooklyn-server/pull/803.


---

Reply via email to