Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF988200B63 for ; Mon, 11 Jul 2016 02:39:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE3E0160A66; Mon, 11 Jul 2016 00:39:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4224E160A69 for ; Mon, 11 Jul 2016 02:39:12 +0200 (CEST) Received: (qmail 60882 invoked by uid 500); 11 Jul 2016 00:39:11 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 60843 invoked by uid 99); 11 Jul 2016 00:39:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 00:39:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 046342C02A1 for ; Mon, 11 Jul 2016 00:39:11 +0000 (UTC) Date: Mon, 11 Jul 2016 00:39:11 +0000 (UTC) From: "Arun Suresh (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-5350) Ensure LocalScheduler does not lose the sort order of allocatable nodes returned by the RM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Jul 2016 00:39:12 -0000 Arun Suresh created YARN-5350: --------------------------------- Summary: Ensure LocalScheduler does not lose the sort order of allocatable nodes returned by the RM Key: YARN-5350 URL: https://issues.apache.org/jira/browse/YARN-5350 Project: Hadoop YARN Issue Type: Sub-task Reporter: Arun Suresh Assignee: Arun Suresh The LocalScheduler receives an ordered list of nodes from the RM with each allocate call. This list, which is used by the LocalScheduler to allocate OPPORTUNISTIC containers, is sorted on the Nodes free capacity (queue length / wait time). Unfortunately, the LocalScheduler stores this list in a HashMap thereby losing the sort order. The trivial fix would be to replace the HashMap with a LinkedHashMap which retains the insertion order. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org