[
https://issues.apache.org/jira/browse/MAPREDUCE-5279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Varun Vasudev updated MAPREDUCE-5279:
-------------------------------------
Attachment: apache-mapreduce-5279.7.patch
{quote}
1. Do you miss SchedulerResourceTypes.CPU here?
{noformat}
+ doReturn(EnumSet.of(SchedulerResourceTypes.MEMORY)).when(allocator)
+ .getSchedulerResourceTypes();
+
+ // Test ramp-down when enough cpu but not enough memory resource
+ doReturn(BuilderUtils.newResource(10 * 1024, 100 * 1)).when(allocator)
{noformat}
{quote}
Yep, fixed.
{quote}
2. Unnecessary import
{noformat}
import org.apache.hadoop.classification.InterfaceAudience.Private;
{noformat}
{quote}
Fixed
> Jobs can deadlock if headroom is limited by cpu instead of memory
> -----------------------------------------------------------------
>
> Key: MAPREDUCE-5279
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5279
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2, scheduler
> Affects Versions: 2.0.3-alpha
> Reporter: Peng Zhang
> Assignee: Peng Zhang
> Priority: Critical
> Attachments: MAPREDUCE-5279-v2.patch, MAPREDUCE-5279.patch,
> apache-mapreduce-5279.3.patch, apache-mapreduce-5279.4.patch,
> apache-mapreduce-5279.5.patch, apache-mapreduce-5279.6.patch,
> apache-mapreduce-5279.7.patch
>
>
> YARN-2 imported cpu dimension scheduling, but MR RMContainerAllocator doesn't
> take into account virtual cores while scheduling reduce tasks.
> This may cause more reduce tasks to be scheduled because memory is enough.
> And on a small cluster, this will end with deadlock, all running containers
> are reduce tasks but map phase is not finished.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)