Repository: mesos Updated Branches: refs/heads/master 20c3c34b0 -> 729ec6203
Added more diagnostic info for a CHECK. Review: https://reviews.apache.org/r/67115 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/729ec620 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/729ec620 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/729ec620 Branch: refs/heads/master Commit: 729ec62035d9c757d920913af4ea4169f1d0a143 Parents: 20c3c34 Author: Jiang Yan Xu <[email protected]> Authored: Sat May 12 13:36:02 2018 -0700 Committer: Jiang Yan Xu <[email protected]> Committed: Mon May 14 10:25:51 2018 -0700 ---------------------------------------------------------------------- src/master/allocator/mesos/hierarchical.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/729ec620/src/master/allocator/mesos/hierarchical.cpp ---------------------------------------------------------------------- diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp index c221999..b558228 100644 --- a/src/master/allocator/mesos/hierarchical.cpp +++ b/src/master/allocator/mesos/hierarchical.cpp @@ -1020,7 +1020,9 @@ void HierarchicalAllocatorProcess::updateInverseOffer( Framework& framework = frameworks.at(frameworkId); Slave& slave = slaves.at(slaveId); - CHECK(slave.maintenance.isSome()); + CHECK(slave.maintenance.isSome()) + << "Agent " << slaveId + << " (" << slave.info.hostname() << ") should have maintenance scheduled"; // NOTE: We currently implement maintenance in the allocator to be able to // leverage state and features such as the FrameworkSorter and OfferFilter.
