Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 2917E180B4 for ; Tue, 27 Oct 2015 08:08:28 +0000 (UTC) Received: (qmail 5833 invoked by uid 500); 27 Oct 2015 08:08:27 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 5736 invoked by uid 500); 27 Oct 2015 08:08:27 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 5698 invoked by uid 99); 27 Oct 2015 08:08:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2015 08:08:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B8B1F2C1F58 for ; Tue, 27 Oct 2015 08:08:27 +0000 (UTC) Date: Tue, 27 Oct 2015 08:08:27 +0000 (UTC) From: "Adrian Kalaszi (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-4263) Capacity scheduler 60%-40% formatting floating point issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-4263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Kalaszi updated YARN-4263: --------------------------------- Attachment: YARN-4263.005.patch > Capacity scheduler 60%-40% formatting floating point issue > ---------------------------------------------------------- > > Key: YARN-4263 > URL: https://issues.apache.org/jira/browse/YARN-4263 > Project: Hadoop YARN > Issue Type: Bug > Components: client > Affects Versions: 2.7.1 > Reporter: Adrian Kalaszi > Priority: Trivial > Labels: easyfix > Attachments: YARN-4263.001.patch, YARN-4263.002.patch, YARN-4263.003.patch, YARN-4263.004.patch, YARN-4263.005.patch > > > If capacity scheduler is set with two queues to 60% and 40% capacity, due to a java float floating representation issue > {code} > > hadoop queue -list > ====================== > Queue Name : default > Queue State : running > Scheduling Info : Capacity: 40.0, MaximumCapacity: 100.0, CurrentCapacity: 0.0 > ====================== > Queue Name : large > Queue State : running > Scheduling Info : Capacity: 60.000004, MaximumCapacity: 100.0, CurrentCapacity: 0.0 > {code} > Because > {code} System.err.println((0.6f) * 100); {code} > results in 60.000004. -- This message was sent by Atlassian JIRA (v6.3.4#6332)