[
https://issues.apache.org/jira/browse/HADOOP-4988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vivek Ratan updated HADOOP-4988:
--------------------------------
Attachment: 4988.1.patch
Attached patch (4988.1.patch) with a simple fix:
* changed the queue comparator to treat queues with gc=0 as queues running at
capacity
* removed code in assignTasks() that depended on queues with gc=0 being at the
end of the collection.
* Added a new test that checks for reclaiming capacity with a queue having gc=0
> An earlier fix, for HADOOP-4373, results in a problem with reclaiming
> capacity when one or more queues have a capacity equal to zero
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-4988
> URL: https://issues.apache.org/jira/browse/HADOOP-4988
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/capacity-sched
> Reporter: Vivek Ratan
> Priority: Blocker
> Attachments: 4988.1.patch
>
>
> HADOOP-4373 introduced a fix for queues with guaranteed capacity (gc) equal
> to zero. Part of the fix was in the queue comparator used to sort queues.
> Queues with gc=0 were placed at the end. This causes a problem with the code
> for reclaiming capacity, which assumes that queues are sorted based on free
> space available and that a queue with gc=0 is no different than a queue which
> is running at capacity. Because of this, the following problem can arise: if
> we have a system with at least one queue whose gc=0, we may fail to reclaim
> capacity for some queues.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.