[
https://issues.apache.org/jira/browse/HADOOP-4876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sreekanth Ramakrishnan updated HADOOP-4876:
-------------------------------------------
Attachment: HADOOP-4876-1.patch
Attaching patch to address this issue.
Reverted the TaskSchedulingMgr.updateQSIObject() to include pending jobs.
Added a new method in JobQueueManager, to get waiting jobs., I have added an
extra structure to store waiting jobs, because I wanted to reduce the amount of
time spent on getWaitingJobQueue method of the JobQueueManager.
Added two test cases :
1. Test case to check capacity reclamation, even when the job is not
initialized.
2. Test the waiting job api and removal of the job from the waiting job
structure.
> Capacity reclaimation for queue would not work as intended
> ----------------------------------------------------------
>
> Key: HADOOP-4876
> URL: https://issues.apache.org/jira/browse/HADOOP-4876
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/capacity-sched
> Reporter: Sreekanth Ramakrishnan
> Assignee: Sreekanth Ramakrishnan
> Priority: Critical
> Attachments: HADOOP-4876-1.patch
>
>
> Capacity schedulers reclaim logic would not work as intended after
> [HADOOP-4513|https://issues.apache.org/jira/browse/HADOOP-4513] went in.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.