You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2017/06/01 23:47:13 UTC

mesos git commit: Show the resources in the allocator CHECK.

Repository: mesos
Updated Branches:
  refs/heads/master 178a3cccd -> f0e384d32


Show the resources in the allocator CHECK.

If the CHECK in HierarchicalAllocatorProcess::recoverResources fails,
show the resources that caused the failure.

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


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

Branch: refs/heads/master
Commit: f0e384d3213a823c338cffcd4bfa74e213ec40d0
Parents: 178a3cc
Author: James Peach <jp...@apache.org>
Authored: Thu Jun 1 16:47:00 2017 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Thu Jun 1 16:47:00 2017 -0700

----------------------------------------------------------------------
 src/master/allocator/mesos/hierarchical.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f0e384d3/src/master/allocator/mesos/hierarchical.cpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp
index 6679d47..f61a735 100644
--- a/src/master/allocator/mesos/hierarchical.cpp
+++ b/src/master/allocator/mesos/hierarchical.cpp
@@ -1129,6 +1129,7 @@ void HierarchicalAllocatorProcess::recoverResources(
     Slave& slave = slaves.at(slaveId);
 
     CHECK(slave.allocated.contains(resources));
+      << slave.allocated << " does not contain " << resources;
 
     slave.allocated -= resources;