You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2017/09/18 18:31:00 UTC

[jira] [Updated] (HDFS-12480) TestNameNodeMetrics#testTransactionAndCheckpointMetrics Fails in trunk

     [ https://issues.apache.org/jira/browse/HDFS-12480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hanisha Koneru updated HDFS-12480:
----------------------------------
    Attachment: HDFS-12480.001.patch

Thanks for reporting this, [~brahmareddy].

HDFS-12395 added erasure coding policy operations to NN edit log and HDFS-12414 made the following change in the _TestNamenodeMetrics#setUp()_ method
{code} 
166      fs.enableErasureCodingPolicy(EC_POLICY.getName());
{code}

This adds the EC operation to the edit log, incrementing the transaction id by 1.
This update to transaction id was not being captured in _testTransactionAndCheckpointMetrics_. 

> TestNameNodeMetrics#testTransactionAndCheckpointMetrics Fails in trunk
> ----------------------------------------------------------------------
>
>                 Key: HDFS-12480
>                 URL: https://issues.apache.org/jira/browse/HDFS-12480
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Brahma Reddy Battula
>            Assignee: Hanisha Koneru
>         Attachments: HDFS-12480.001.patch
>
>
> {noformat}
> java.lang.AssertionError: Bad value for metric LastWrittenTransactionId expected:<3> but was:<4>
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.failNotEquals(Assert.java:743)
> 	at org.junit.Assert.assertEquals(Assert.java:118)
> 	at org.junit.Assert.assertEquals(Assert.java:555)
> 	at org.apache.hadoop.test.MetricsAsserts.assertGauge(MetricsAsserts.java:189)
> 	at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.testTransactionAndCheckpointMetrics(TestNameNodeMetrics.java:854)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org