ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [03/15] ignite git commit: IGNITE-1354 Platform: AFTER_GRID_STOP lifecycle events do not work
Date Thu, 03 Sep 2015 02:16:43 GMT
IGNITE-1354 Platform: AFTER_GRID_STOP lifecycle events do not work

Filter AfterStop events on Java side.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d734b6e4
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d734b6e4
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d734b6e4

Branch: refs/heads/ignite-843
Commit: d734b6e4dfcb79c7707f3f55abc445674e23409a
Parents: fdcd47b
Author: ptupitsyn <ptupitsyn@gridgain.com>
Authored: Wed Sep 2 13:08:56 2015 +0300
Committer: ptupitsyn <ptupitsyn@gridgain.com>
Committed: Wed Sep 2 13:08:56 2015 +0300

----------------------------------------------------------------------
 .../processors/platform/lifecycle/PlatformLifecycleBean.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d734b6e4/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/lifecycle/PlatformLifecycleBean.java
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/lifecycle/PlatformLifecycleBean.java
b/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/lifecycle/PlatformLifecycleBean.java
index 3f5d285..f17e824 100644
--- a/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/lifecycle/PlatformLifecycleBean.java
+++ b/modules/platform/src/main/java/org/apache/ignite/internal/processors/platform/lifecycle/PlatformLifecycleBean.java
@@ -57,7 +57,9 @@ public class PlatformLifecycleBean implements LifecycleBean {
 
         assert ptr != 0;
 
-        gate.lifecycleEvent(ptr, evt.ordinal());
+        // Do not send after-stop events because gate will fail due to grid being stopped.
+        if (evt != LifecycleEventType.AFTER_NODE_STOP)
+            gate.lifecycleEvent(ptr, evt.ordinal());
     }
 
     /**


Mime
View raw message