[
https://issues.apache.org/jira/browse/YARN-2712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsuyoshi OZAWA updated YARN-2712:
---------------------------------
Attachment: YARN-2712.1.patch
Attaching a first patch including following changes:
1. Adding tests about FSQueue({{checkFSQueue}}).
2. Moving headroom tests into check*Queue.
3. Renamed asserteMetrics to assertMetrics.
4. Calling {{updateRootQueueMetrics}} explicitly in {{FairScheduler#update}}
because I found a unexpected behavior about rootQueue while writing code -
{{updateRootQueueMetrics}} isn't called until RMNode is registered, updated,
removed, and added.
> Adding tests about FSQueue and headroom of FairScheduler to
> TestWorkPreservingRMRestart
> ---------------------------------------------------------------------------------------
>
> Key: YARN-2712
> URL: https://issues.apache.org/jira/browse/YARN-2712
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: resourcemanager
> Reporter: Tsuyoshi OZAWA
> Assignee: Tsuyoshi OZAWA
> Attachments: YARN-2712.1.patch
>
>
> TestWorkPreservingRMRestart#testSchedulerRecovery doesn't have test cases
> about FairScheduler partially. We should support them.
> {code}
> // Until YARN-1959 is resolved
> if (scheduler.getClass() != FairScheduler.class) {
> assertEquals(availableResources, schedulerAttempt.getHeadroom());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)