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

    https://github.com/apache/brooklyn-server/pull/803#discussion_r134428459
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/entity/group/DynamicClusterImpl.java ---
    @@ -595,6 +595,10 @@ public void restart() {
         @Override
         public Integer resize(Integer desiredSize) {
             synchronized (mutex) {
    +            Optional<Integer> optionalMaxSize = 
Optional.fromNullable(config().get(MAX_SIZE));
    +            if (optionalMaxSize.isPresent() && desiredSize > 
optionalMaxSize.get()) {
    +                throw new IllegalArgumentException("Desired cluster size " 
+ desiredSize + " exceeds maximum size of " + optionalMaxSize.get());
    --- End diff --
    
    Should this not be `InsufficientCapacityException `


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to