Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCBFCE8E6 for ; Thu, 3 Jan 2013 22:06:13 +0000 (UTC) Received: (qmail 39120 invoked by uid 500); 3 Jan 2013 22:06:13 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 39000 invoked by uid 500); 3 Jan 2013 22:06:12 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 38765 invoked by uid 99); 3 Jan 2013 22:06:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 22:06:12 +0000 Date: Thu, 3 Jan 2013 22:06:12 +0000 (UTC) From: "Suresh Srinivas (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-4355) TestNameNodeMetrics.testCorruptBlock fails with open JDK7 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-4355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas resolved HDFS-4355. ----------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 Hadoop Flags: Reviewed I committed the patch to branch-1. Thank you Brandon. > TestNameNodeMetrics.testCorruptBlock fails with open JDK7 > --------------------------------------------------------- > > Key: HDFS-4355 > URL: https://issues.apache.org/jira/browse/HDFS-4355 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 1-win > Reporter: Brandon Li > Assignee: Brandon Li > Fix For: 1.2.0 > > Attachments: HDFS-4355.patch, HDFS-4355.patch > > > Argument(s) are different! Wanted: > metricsRecordBuilder.addGauge( > "CorruptBlocks", > , > 1 > ); > -> at org.apache.hadoop.test.MetricsAsserts.assertGauge(MetricsAsserts.java:96) > Actual invocation has different arguments: > metricsRecordBuilder.addGauge( > "FilesTotal", > "", > 4 > ); > -> at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getMetrics(FSNamesystem.java:5818) > at java.lang.reflect.Constructor.newInstance(Constructor.java:525) > at org.apache.hadoop.test.MetricsAsserts.assertGauge(MetricsAsserts.java:96) > at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.testCorruptBlock(TestNameNodeMetrics.java:160) > The test should cleanup the filesystem to avoid the pending blocks left by other tests. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira