aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Always log unexpected scheduler lifecycle death.
Date Sat, 02 Aug 2014 00:05:09 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 98561eaf5 -> b0914157c


Always log unexpected scheduler lifecycle death.

Reviewed at https://reviews.apache.org/r/24198/


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

Branch: refs/heads/master
Commit: b0914157cc08f6aeeabcf49d2ed4bedaa5d8ff2e
Parents: 98561ea
Author: Bill Farner <wfarner@apache.org>
Authored: Fri Aug 1 17:04:45 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Fri Aug 1 17:04:45 2014 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/b0914157/src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java b/src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java
index a0704b4..92ceaed 100644
--- a/src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java
+++ b/src/main/java/org/apache/aurora/scheduler/SchedulerLifecycle.java
@@ -300,6 +300,7 @@ public class SchedulerLifecycle implements EventSubscriber {
           public void run() {
             // Blocks until driver exits.
             driverRef.get().join();
+            LOG.info("Driver exited, terminating lifecycle.");
             stateMachine.transition(State.DEAD);
           }
         });
@@ -421,6 +422,7 @@ public class SchedulerLifecycle implements EventSubscriber {
         try {
           closure.execute(transition);
         } catch (RuntimeException e) {
+          LOG.log(Level.SEVERE, "Caught unchecked exception: " + e, e);
           stateMachine.transition(State.DEAD);
           throw e;
         }


Mime
View raw message