Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 893DEDD58 for ; Tue, 24 Jul 2012 21:45:35 +0000 (UTC) Received: (qmail 94552 invoked by uid 500); 24 Jul 2012 21:45:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 94510 invoked by uid 500); 24 Jul 2012 21:45:35 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 94420 invoked by uid 99); 24 Jul 2012 21:45:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 21:45:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id ECC2B142861 for ; Tue, 24 Jul 2012 21:45:34 +0000 (UTC) Date: Tue, 24 Jul 2012 21:45:34 +0000 (UTC) From: "Andrew Wang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1605300859.98499.1343166334971.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1257624137.95860.1343140776863.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HDFS-3717) Test cases in TestPBHelper fail 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/HDFS-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421794#comment-13421794 ] Andrew Wang commented on HDFS-3717: ----------------------------------- One note here is that HDFS-3711 uses a small, non-zero value for {{DELTA}}, not 0.0. I chose this because floating point values can vary slightly based on the order of supposedly commutative operations, so doing a straight equality comparison often won't work. > Test cases in TestPBHelper fail > ------------------------------- > > Key: HDFS-3717 > URL: https://issues.apache.org/jira/browse/HDFS-3717 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.0.1-alpha > Reporter: Kihwal Lee > Assignee: Kihwal Lee > Fix For: 3.0.0, 2.2.0-alpha > > Attachments: hdfs-3717.patch.txt > > > {{org.apache.hadoop.hdfs.protocolPB.TestPBHelper.testConvertBlockCommand}} > {{org.apache.hadoop.hdfs.protocolPB.TestPBHelper.testConvertLocatedBlock}} > {{org.apache.hadoop.hdfs.protocolPB.TestPBHelper.testConvertRecoveringBlock}} > They all fail with: > {noformat} > java.lang.AssertionError: Use assertEquals(expected, actual, delta) > to compare floating-point numbers > {noformat} -- 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