[
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: [email protected]
For additional commands, e-mail: [email protected]