You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 07:29:05 UTC

svn commit: r1131782 - /incubator/mesos/trunk/src/master.cpp

Author: benh
Date: Sun Jun  5 05:29:04 2011
New Revision: 1131782

URL: http://svn.apache.org/viewvc?rev=1131782&view=rev
Log:
Added a todo comment to make sure we do the right thing after a master realizes it is no longer the master (it should just commit suicide or restart if it can).

Modified:
    incubator/mesos/trunk/src/master.cpp

Modified: incubator/mesos/trunk/src/master.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master.cpp?rev=1131782&r1=1131781&r2=1131782&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master.cpp (original)
+++ incubator/mesos/trunk/src/master.cpp Sun Jun  5 05:29:04 2011
@@ -318,6 +318,9 @@ void Master::operator () ()
     switch (receive()) {
 
     case NEW_MASTER_DETECTED: {
+      // TODO(benh): We might have been the master, but then got
+      // partitioned, and now we are finding out once we reconnect
+      // that we are no longer the master, so we should just die.
       LOG(INFO) << "new master detected ... maybe it's us!";
       break;
     }