aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject git commit: Updated FakeSchedulerDriver to work with delayed driver registration semantics of SchedulerLifeCycle.
Date Mon, 24 Feb 2014 18:53:03 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master f106eab88 -> 4eeadc721


Updated FakeSchedulerDriver to work with delayed driver registration semantics of SchedulerLifeCycle.

Updated FakeSchedulerDriver to register scheduler on start instead of run.

Testing Done:
gradle clean build.
rm /tmp/testing_log_file && gradle run

Bugs closed: AURORA-179

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


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

Branch: refs/heads/master
Commit: 4eeadc721862d43f4925069b2c9a84adea1dc08e
Parents: f106eab
Author: Suman Karumuri <mansu@apache.org>
Authored: Mon Feb 24 10:51:06 2014 -0800
Committer: Suman Karumuri <skarumuri@twitter.com>
Committed: Mon Feb 24 10:51:06 2014 -0800

----------------------------------------------------------------------
 .../org/apache/aurora/scheduler/local/FakeDriverFactory.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/4eeadc72/src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java b/src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java
index 45f5986..e5d13e0 100644
--- a/src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java
+++ b/src/main/java/org/apache/aurora/scheduler/local/FakeDriverFactory.java
@@ -58,12 +58,17 @@ class FakeDriverFactory implements DriverFactory {
   public SchedulerDriver apply(@Nullable final String frameworkId) {
     return new FakeSchedulerDriver() {
       @Override
-      public Status run() {
+      public Status start() {
         scheduler.get().registered(
             this,
             FrameworkID.newBuilder().setValue(
                 Optional.fromNullable(frameworkId).or("new-framework-id")).build(),
             MasterInfo.newBuilder().setId("master-id").setIp(100).setPort(200).build());
+        return null;
+      }
+
+      @Override
+      public Status join() {
         lifecycle.awaitShutdown();
         return null;
       }


Mime
View raw message