You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2013/01/03 23:06:12 UTC

[jira] [Resolved] (HDFS-4355) TestNameNodeMetrics.testCorruptBlock fails with open JDK7

     [ 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",
> <any>,
> 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