You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/03/13 01:32:01 UTC

[2/3] mesos git commit: Minor fix to output state during a `CHECK` failure.

Minor fix to output state during a `CHECK` failure.

This change outputs the state when a check fails inside the scheduler library.

Review: https://reviews.apache.org/r/44579/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/441c2784
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/441c2784
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/441c2784

Branch: refs/heads/master
Commit: 441c278459f9dc6f35e9dff8b6be7704ed075bc9
Parents: 2aff8f7
Author: Anand Mazumdar <ma...@gmail.com>
Authored: Sat Mar 12 19:31:28 2016 -0500
Committer: Vinod Kone <vi...@gmail.com>
Committed: Sat Mar 12 19:31:28 2016 -0500

----------------------------------------------------------------------
 src/scheduler/scheduler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/441c2784/src/scheduler/scheduler.cpp
----------------------------------------------------------------------
diff --git a/src/scheduler/scheduler.cpp b/src/scheduler/scheduler.cpp
index b010a81..35f4794 100644
--- a/src/scheduler/scheduler.cpp
+++ b/src/scheduler/scheduler.cpp
@@ -482,7 +482,7 @@ protected:
     }
 
     CHECK(!response.isDiscarded());
-    CHECK(state == SUBSCRIBING || state == SUBSCRIBED);
+    CHECK(state == SUBSCRIBING || state == SUBSCRIBED) << state;
 
     // This can happen during a master failover or a network blip
     // causing the socket to timeout. Eventually, the scheduler would