[ 
https://issues.apache.org/jira/browse/YARN-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13887043#comment-13887043
 ] 

Sandy Ryza commented on YARN-1498:
----------------------------------

bq. AppSchedulingInfo: Not sure I understand the relevance of the following 
change to this JIRA. Am I missing something or is it just cleanup?
This isn't required, but I thought it made the code clearer, as we're adding to 
the places that incrPendingResources and decrPendingResources get called. 
AppSchedulingInfo#move is confusing already, and I wanted to avoid having a 
monstrosity like
{code}
-        metrics.incrPendingResources(user, request.getNumContainers()
-            - lastRequestContainers, Resources.subtractFrom( // save a clone
-            Resources.multiply(request.getCapability(), request
-                .getNumContainers()), Resources.multiply(lastRequestCapability,
-                lastRequestContainers)));
{code}
in it.  Can revert it if you think it's not worth it.

bq. Can we throw an Exception instead of returning null.
I copied this from the Capacity Scheduler, so would rather keep it consistent.

> Common scheduler changes for moving apps between queues
> -------------------------------------------------------
>
>                 Key: YARN-1498
>                 URL: https://issues.apache.org/jira/browse/YARN-1498
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>    Affects Versions: 2.2.0
>            Reporter: Sandy Ryza
>            Assignee: Sandy Ryza
>         Attachments: YARN-1498-1.patch, YARN-1498.patch, YARN-1498.patch
>
>
> This JIRA is to track changes that aren't in particular schedulers but that 
> help them support moving apps between queues.  In particular, it makes sure 
> that QueueMetrics are properly updated when an app changes queue.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to