[
https://issues.apache.org/jira/browse/MAPREDUCE-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859225#action_12859225
]
Hemanth Yamijala commented on MAPREDUCE-1695:
---------------------------------------------
I will hold commit for just a while. There is one point I wanted to bring to
attention, and would appreciate a second look:
The patch introduces a locking order of queue manager, and then scheduler. This
is in the refreshQueues call in CapacitySchedulerQueueRefresher. There is a
locking of the scheduler and then the queue manager, when the scheduler calls
setSchedulerInfo in createDisplayInfo. At the face of it, this seems like a
cyclic lock order with a potential to create a deadlock.
On closer look, I think the two code paths cannot be active at the same time.
The call to refreshQueues can happen only when a refreshQueues command is
fired, and right now, that can happen only via an RPC call to the JobTracker.
The call to setSchedulerInfo happens only at startup time, and this happens
*before* the InterTrackerServer is started.
So, the patch seems safe still. But does it seem too close to be comfortable ?
> 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-20100420-2.patch,
> mapreduce-1695-20100420.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.