brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iyovcheva <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #356: BROOKLYN-325 Rebind entity starting
Date Fri, 30 Sep 2016 07:51:12 GMT
Github user iyovcheva commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/356#discussion_r81292615
  
    --- Diff: core/src/main/java/org/apache/brooklyn/core/mgmt/rebind/BasicEntityRebindSupport.java
---
    @@ -237,13 +239,21 @@ protected void addLocations(RebindContext rebindContext, EntityMemento
memento)
                 }
             }
         }
    -    
    +
    +    @Override
         protected void instanceRebind(AbstractBrooklynObject instance) {
             Preconditions.checkState(instance == entity, "Expected %s and %s to match, but
different objects", instance, entity);
             Lifecycle expectedState = ServiceStateLogic.getExpectedState(entity);
             if (expectedState == Lifecycle.STARTING || expectedState == Lifecycle.STOPPING)
{
    -            LOG.warn("Entity "+entity);
    +            LOG.warn("Entity {} goes on-fire because it was in state {} on rebind",
    +                    entity, ServiceStateLogic.getExpectedState(entity));
    --- End diff --
    
    For some reason this is not showing outdated.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message