You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by mr...@apache.org on 2016/09/01 04:25:14 UTC

[1/2] usergrid git commit: Don't shut down full actor system when the JVM exists ( this affects actors running on other hosts ).

Repository: usergrid
Updated Branches:
  refs/heads/hotfix-20160819 9520496b8 -> 058d33a89


Don't shut down full actor system when the JVM exists ( this affects actors running on other hosts ).


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

Branch: refs/heads/hotfix-20160819
Commit: 4275db0c7adba6e904b46bdd451d87e8277c2933
Parents: f73ce4a
Author: Michael Russo <mr...@apigee.com>
Authored: Wed Aug 31 21:24:23 2016 -0700
Committer: Michael Russo <mr...@apigee.com>
Committed: Wed Aug 31 21:24:23 2016 -0700

----------------------------------------------------------------------
 .../persistence/actorsystem/ActorSystemManagerImpl.java | 12 ++++++------
 .../java/org/apache/usergrid/rest/ShutdownListener.java |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/4275db0c/stack/corepersistence/actorsystem/src/main/java/org/apache/usergrid/persistence/actorsystem/ActorSystemManagerImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/actorsystem/src/main/java/org/apache/usergrid/persistence/actorsystem/ActorSystemManagerImpl.java b/stack/corepersistence/actorsystem/src/main/java/org/apache/usergrid/persistence/actorsystem/ActorSystemManagerImpl.java
index 8dcb550..3f00327 100644
--- a/stack/corepersistence/actorsystem/src/main/java/org/apache/usergrid/persistence/actorsystem/ActorSystemManagerImpl.java
+++ b/stack/corepersistence/actorsystem/src/main/java/org/apache/usergrid/persistence/actorsystem/ActorSystemManagerImpl.java
@@ -349,12 +349,12 @@ public class ActorSystemManagerImpl implements ActorSystemManager {
             }
 
             // add a shutdown hook to clean all actor systems if the JVM exits without the servlet container knowing
-            Runtime.getRuntime().addShutdownHook(new Thread() {
-                @Override
-                public void run() {
-                    shutdownAll();
-                }
-            });
+//            Runtime.getRuntime().addShutdownHook(new Thread() {
+//                @Override
+//                public void run() {
+//                    shutdownAll();
+//                }
+//            });
 
         }
 

http://git-wip-us.apache.org/repos/asf/usergrid/blob/4275db0c/stack/rest/src/main/java/org/apache/usergrid/rest/ShutdownListener.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/main/java/org/apache/usergrid/rest/ShutdownListener.java b/stack/rest/src/main/java/org/apache/usergrid/rest/ShutdownListener.java
index f9f1653..f3707a7 100644
--- a/stack/rest/src/main/java/org/apache/usergrid/rest/ShutdownListener.java
+++ b/stack/rest/src/main/java/org/apache/usergrid/rest/ShutdownListener.java
@@ -72,7 +72,7 @@ public class ShutdownListener implements ServletContextListener {
         ActorSystemManager actorSystemManager = injector.getInstance(ActorSystemManager.class);
 
         // stop the Akka actor system
-        actorSystemManager.shutdownAll();
+        //actorSystemManager.shutdownAll();
 
         boolean started = Boolean.parseBoolean(
             properties.getProperty(JobServiceBoostrap.START_SCHEDULER_PROP, "true"));


[2/2] usergrid git commit: Merge branch 'hotfix-20160819' of https://git-wip-us.apache.org/repos/asf/usergrid into hotfix-20160819

Posted by mr...@apache.org.
Merge branch 'hotfix-20160819' of https://git-wip-us.apache.org/repos/asf/usergrid into hotfix-20160819


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

Branch: refs/heads/hotfix-20160819
Commit: 058d33a8962661c878b6eca0cfa0941dc9ca04cb
Parents: 4275db0 9520496
Author: Michael Russo <mr...@apigee.com>
Authored: Wed Aug 31 21:24:59 2016 -0700
Committer: Michael Russo <mr...@apigee.com>
Committed: Wed Aug 31 21:24:59 2016 -0700

----------------------------------------------------------------------
 .../collection/uniquevalues/UniqueValuesServiceTest.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------