You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/12/18 01:13:47 UTC
[2/2] mesos git commit: Added a CHECK when adding a framework in the
allocator.
Added a CHECK when adding a framework in the allocator.
Review: https://reviews.apache.org/r/54837
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/980f660a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/980f660a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/980f660a
Branch: refs/heads/master
Commit: 980f660ac4045fe8751ce843223a75d3d84348e0
Parents: 0a19332
Author: Benjamin Mahler <bm...@apache.org>
Authored: Wed Dec 7 17:59:47 2016 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Sat Dec 17 19:13:07 2016 -0600
----------------------------------------------------------------------
src/master/allocator/mesos/hierarchical.cpp | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/980f660a/src/master/allocator/mesos/hierarchical.cpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp
index a8cbc8d..91b1ec4 100644
--- a/src/master/allocator/mesos/hierarchical.cpp
+++ b/src/master/allocator/mesos/hierarchical.cpp
@@ -223,6 +223,7 @@ void HierarchicalAllocatorProcess::addFramework(
bool active)
{
CHECK(initialized);
+ CHECK(!frameworks.contains(frameworkId));
const string& role = frameworkInfo.role();