aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject incubator-aurora git commit: Adding missing service binding into UpdaterModule.
Date Thu, 05 Mar 2015 18:15:32 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master 99d7aa7de -> cb3749147


Adding missing service binding into UpdaterModule.

Bugs closed: AURORA-1173

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


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

Branch: refs/heads/master
Commit: cb3749147f29021511e780e2749cec84ffe1eb5d
Parents: 99d7aa7
Author: Maxim Khutornenko <maxim@apache.org>
Authored: Thu Mar 5 10:15:18 2015 -0800
Committer: Maxim Khutornenko <maxim@apache.org>
Committed: Thu Mar 5 10:15:18 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/aurora/scheduler/updater/UpdaterModule.java   | 3 +++
 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh              | 2 ++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/cb374914/src/main/java/org/apache/aurora/scheduler/updater/UpdaterModule.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/updater/UpdaterModule.java b/src/main/java/org/apache/aurora/scheduler/updater/UpdaterModule.java
index 5733da3..c0472d7 100644
--- a/src/main/java/org/apache/aurora/scheduler/updater/UpdaterModule.java
+++ b/src/main/java/org/apache/aurora/scheduler/updater/UpdaterModule.java
@@ -24,6 +24,7 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
 import com.google.inject.AbstractModule;
 import com.google.inject.PrivateModule;
 
+import org.apache.aurora.scheduler.SchedulerServicesModule;
 import org.apache.aurora.scheduler.events.PubsubEventModule;
 
 /**
@@ -60,5 +61,7 @@ public class UpdaterModule extends AbstractModule {
     });
 
     PubsubEventModule.bindSubscriber(binder(), JobUpdateEventSubscriber.class);
+    SchedulerServicesModule.addSchedulerActiveServiceBinding(binder())
+        .to(JobUpdateEventSubscriber.class);
   }
 }

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/cb374914/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
----------------------------------------------------------------------
diff --git a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
index 2168491..f9f8189 100755
--- a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
+++ b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
@@ -170,6 +170,8 @@ test_update() {
 
   aurora beta-update start $_jobkey $_config
   assert_update_state $_jobkey 'ROLLING_FORWARD'
+  sudo restart aurora-scheduler
+  assert_update_state $_jobkey 'ROLLING_FORWARD'
   aurora beta-update pause $_jobkey
   assert_update_state $_jobkey 'ROLL_FORWARD_PAUSED'
   aurora beta-update resume $_jobkey


Mime
View raw message