Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 463929203 for ; Tue, 13 Mar 2012 13:12:03 +0000 (UTC) Received: (qmail 78596 invoked by uid 500); 13 Mar 2012 13:12:02 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 78568 invoked by uid 500); 13 Mar 2012 13:12:02 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 78558 invoked by uid 99); 13 Mar 2012 13:12:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 13:12:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2012 13:12:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C98861EA44 for ; Tue, 13 Mar 2012 13:11:39 +0000 (UTC) Date: Tue, 13 Mar 2012 13:11:39 +0000 (UTC) From: "Harsh J (Created) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <583979537.7731.1331644299826.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (MAPREDUCE-4001) Improve MAPREDUCE-3789's fix logic by looking at job's slot demands instead MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Improve MAPREDUCE-3789's fix logic by looking at job's slot demands instead --------------------------------------------------------------------------- Key: MAPREDUCE-4001 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4001 Project: Hadoop Map/Reduce Issue Type: Improvement Components: contrib/capacity-sched Affects Versions: 1.1.0 Reporter: Harsh J Assignee: Harsh J Priority: Minor In MAPREDUCE-3789, the fix had unfortunately only covered the first time assignment scenario, and the test had not really caught the mistake of using the condition of looking at available TT slots (instead of looking for how many slots a job's task demands). We should change the condition of reservation in such a manner: {code} if ((getPendingTasks(j) != 0 && !hasSufficientReservedTaskTrackers(j)) && - (taskTracker.getAvailableSlots(type) != + !(j.getNumSlotsPerTask(type) > getTTMaxSlotsForType(taskTrackerStatus, type))) { {code} I had not realized during the earlier ticket that j.getNumSlotsPerTask(type) did exist. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira