[ https://issues.apache.org/jira/browse/HDFS-9911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15666178#comment-15666178 ]
Takanobu Asanuma commented on HDFS-9911: ---------------------------------------- Hi, [~cnauroth]. I looked into this issue. When building {{MiniDFSCluster}} in the {{setup()}}, the datanode infrequently sends a lifeline. Then, {{lifelineNamenode}} is initialized, but {{LifelinesNumOps}} of the datanode is already 1. I think this is the situation. We can simulate it by calling {{DataNodeMetrics#addLifeline}} in the {{setup()}}. {code:java} // Set up spies on RPC proxies so that we can inject failures. DataNode dn = cluster.getDataNodes().get(0); metrics = dn.getMetrics(); metrics.addLifeline(0); {code} > TestDataNodeLifeline Fails intermittently > ------------------------------------------ > > Key: HDFS-9911 > URL: https://issues.apache.org/jira/browse/HDFS-9911 > Project: Hadoop HDFS > Issue Type: Bug > Components: datanode > Affects Versions: 2.8.0 > Reporter: Anu Engineer > Assignee: Chris Nauroth > Fix For: 2.8.0 > > > In HDFS-1312 branch, we have a failure for this test. > {{org.apache.hadoop.hdfs.server.datanode.TestDataNodeLifeline.testNoLifelineSentIfHeartbeatsOnTime}} > {noformat} > Error Message > Expect metrics to count no lifeline calls. expected:<0> but was:<1> > Stacktrace > java.lang.AssertionError: Expect metrics to count no lifeline calls. > expected:<0> but was:<1> > 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.hdfs.server.datanode.TestDataNodeLifeline.testNoLifelineSentIfHeartbeatsOnTime(TestDataNodeLifeline.java:256) > {noformat} > Details can be found here. > https://builds.apache.org/job/PreCommit-HDFS-Build/14726/testReport/org.apache.hadoop.hdfs.server.datanode/TestDataNodeLifeline/testNoLifelineSentIfHeartbeatsOnTime/ -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org