Skip to content

Commit

Permalink
more chronos mucking around
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Aug 18, 2015
1 parent 5821133 commit cf35539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions chronos/src/jepsen/chronos.clj
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@
(if (not= :resurrect (:f op))
(client/invoke! nemesis test op)
(do (c/on-many (:nodes test)
(mesosphere/start-master! test c/*host*)
(mesosphere/start-slave! test c/*host*)
(start! test c/*host*))
(let [node (keyword c/*host*)]
(mesosphere/start-master! test node)
(mesosphere/start-slave! test node)
(start! test node)))
(assoc op :value :resurrection-complete))))

(teardown! [this test]
Expand Down
4 changes: 2 additions & 2 deletions chronos/src/jepsen/mesosphere.clj
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
of code to DB concepts here; maybe change this back to \"primary\" or
\"supervisor\" later?"
[test node]
(when (some #{node} (take master-count (:nodes test)))
(when (some #{node} (take master-count (sort (:nodes test))))
(info node "starting mesos-master")
(c/su
(c/exec :start-stop-daemon :--start
Expand Down Expand Up @@ -98,7 +98,7 @@
of code to DB concepts here; maybe change this back to \"primary\" or
\"supervisor\" later?"
[test node]
(when-not (some #{node} (take master-count (:nodes test)))
(when-not (some #{node} (take master-count (sort (:nodes test))))
(info node "starting mesos-slave")
(c/su
(c/exec :start-stop-daemon :--start
Expand Down

0 comments on commit cf35539

Please sign in to comment.