brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [1/2] brooklyn-server git commit: NotUpDiagnostics: don’t collect if starting && !up
Date Tue, 22 Mar 2016 13:05:49 GMT
Repository: brooklyn-server
Updated Branches:
  refs/heads/master 3767000c6 -> 1e5f3b608


NotUpDiagnostics: don’t collect if starting && !up

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/13fe1c0d
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/13fe1c0d
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/13fe1c0d

Branch: refs/heads/master
Commit: 13fe1c0dc828e342f6482442cdc3aef55d8df8e3
Parents: d059088
Author: Aled Sage <aled.sage@gmail.com>
Authored: Fri Mar 18 23:09:04 2016 +0000
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Fri Mar 18 23:45:58 2016 +0000

----------------------------------------------------------------------
 .../apache/brooklyn/entity/software/base/SoftwareProcessImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/13fe1c0d/software/base/src/main/java/org/apache/brooklyn/entity/software/base/SoftwareProcessImpl.java
----------------------------------------------------------------------
diff --git a/software/base/src/main/java/org/apache/brooklyn/entity/software/base/SoftwareProcessImpl.java
b/software/base/src/main/java/org/apache/brooklyn/entity/software/base/SoftwareProcessImpl.java
index ace4ebe..4bf6543 100644
--- a/software/base/src/main/java/org/apache/brooklyn/entity/software/base/SoftwareProcessImpl.java
+++ b/software/base/src/main/java/org/apache/brooklyn/entity/software/base/SoftwareProcessImpl.java
@@ -172,7 +172,7 @@ public abstract class SoftwareProcessImpl extends AbstractEntity implements
Soft
             Lifecycle state = entity.getAttribute(SERVICE_STATE_ACTUAL);
             if (up == null || up) {
                 entity.sensors().set(ServiceStateLogic.SERVICE_NOT_UP_DIAGNOSTICS, ImmutableMap.<String,
Object>of());
-            } else if (state == null || state == Lifecycle.CREATED) {
+            } else if (state == null || state == Lifecycle.CREATED || state == Lifecycle.STARTING)
{
                 // not yet started; do nothing
             } else if (state == Lifecycle.STOPPING || state == Lifecycle.STOPPED || state
== Lifecycle.DESTROYED) {
                 // stopping/stopped, so expect not to be up; get rid of the diagnostics.


Mime
View raw message