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 10:52:20 UTC

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

Author: benh
Date: Sun Jun  5 08:52:20 2011
New Revision: 1132159

URL: http://svn.apache.org/viewvc?rev=1132159&view=rev
Log:
Added more debug logging to SimpleAllocator

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

Modified: incubator/mesos/trunk/src/master/simple_allocator.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master/simple_allocator.cpp?rev=1132159&r1=1132158&r2=1132159&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master/simple_allocator.cpp (original)
+++ incubator/mesos/trunk/src/master/simple_allocator.cpp Sun Jun  5 08:52:20 2011
@@ -164,8 +164,10 @@ void SimpleAllocator::makeNewOffers(cons
 {
   // Get an ordering of frameworks to send offers to
   vector<Framework*> ordering = getAllocationOrdering();
-  if (ordering.size() == 0)
+  if (ordering.size() == 0) {
+    VLOG(1) << "makeNewOffers returning because no frameworks are connected";
     return;
+  }
   
   // Find all the free resources that can be allocated
   unordered_map<Slave* , Resources> freeResources;
@@ -178,8 +180,10 @@ void SimpleAllocator::makeNewOffers(cons
       }
     }
   }
-  if (freeResources.size() == 0)
+  if (freeResources.size() == 0) {
+    VLOG(1) << "makeNewOffers returning because there are no free resources";
     return;
+  }
   
   // Clear refusers on any slave that has been refused by everyone
   foreachpair (Slave* slave, _, freeResources) {