Guangya Liu created MESOS-4426:
----------------------------------
Summary: Should not send resource offer if there are not enough
resources for a task
Key: MESOS-4426
URL: https://issues.apache.org/jira/browse/MESOS-4426
Project: Mesos
Issue Type: Bug
Reporter: Guangya Liu
Assignee: Guangya Liu
{code}
bool HierarchicalAllocatorProcess::allocatable(
const Resources& resources)
{
Option<double> cpus = resources.cpus();
Option<Bytes> mem = resources.mem();
return (cpus.isSome() && cpus.get() >= MIN_CPUS) ||
(mem.isSome() && mem.get() >= MIN_MEM);
}
{code}
If the non-revocable resources plus revocable resouces for cpus and mem greater
than {{MIN_CPUS}} or {{MIN_MEM}}, the allocator will also send offer, this is
not right, we need to avoid this case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)