[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858864#action_12858864
 ] 

Hemanth Yamijala commented on MAPREDUCE-1695:
---------------------------------------------

I started looking at this patch. A few observations:

- The synchronization added around obtainNewTask seems unnecessary as all code 
paths are locked on the scheduler. But as such, I don't see any harm with the 
changes made here in the patch.
- getClusterCapacity seems unused. Should we remove it ?
- There seem to be some constructor variables that are not needed. They are 
named 'ignored'. I suppose we can remove them ?
- Similarly, I suppose we can also remove the MapTaskDataView and 
ReduceTaskDataView constructors ?
- This is not really a comment on this patch, but I am noting it here to get 
some comments from other folks:
There seems to be a bug in the user limit handling code that is fixed by this 
patch. Before this patch, TaskSchedulingContext.updateNoOfSlotsOccupiedByUser 
on a container queue was only adding entries when the user's name was already 
added to its data structure. However, since this map begins empty, it would 
never be updated with a user's statistics from a child queue. While the bug is 
being fixed in this patch, I think this is a serious enough bug to warrant a 
test case. If my understanding is correct, we should file a JIRA to add a test 
case to verify this.

> capacity scheduler is not included in findbugs/javadoc targets
> --------------------------------------------------------------
>
>                 Key: MAPREDUCE-1695
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1695
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/capacity-sched
>            Reporter: Hong Tang
>            Assignee: Hong Tang
>         Attachments: MAPREDUCE-1695-2.patch, MAPREDUCE-1695-3.patch, 
> MAPREDUCE-1695.patch, mr1695-hadoop-findbugs-report-1.html, 
> mr1695-hadoop-findbugs-report-2.html
>
>
> Capacity Scheduler is not included in findbugs/javadoc targets.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to