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 "Eric Badger (JIRA)" <ji...@apache.org> on 2016/06/10 13:41:21 UTC

[jira] [Reopened] (HDFS-5805) TestCheckpoint.testCheckpoint fails intermittently on branch2

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

Eric Badger reopened HDFS-5805:
-------------------------------

I've been able to get this test to fail consistently about 1/3 of the time on my local cluster. I checked against branch-2.7 and trunk and it failed the same in both. Since it's checking time on metrics, it will fail if the test runs too quickly, which is something that does not often happen on Jenkins. This would explain why we don't see it fail on there. However, without any load on my machine, I can get frequent failures. If I increase the load on my machine, then the test does not fail. 

The interesting thing is that GetEditAvgTime == 0.0 in the test runs where it fails, and == 1.0 in the test runs when it succeeds. It's being treated as a double, but I only ever see it manifest as an integer. My guess is that the metrics are somewhere truncating the value and so when the time is between 0 and 1 it just truncates the decimal place, thus making it 0. 

> TestCheckpoint.testCheckpoint fails intermittently on branch2
> -------------------------------------------------------------
>
>                 Key: HDFS-5805
>                 URL: https://issues.apache.org/jira/browse/HDFS-5805
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Mit Desai
>            Assignee: Mit Desai
>
> {noformat}
> java.lang.AssertionError: Bad value for metric GetEditAvgTime
> Expected: gt(0.0)
>      got: <0.0>
> 	at org.junit.Assert.assertThat(Assert.java:780)
> 	at org.apache.hadoop.test.MetricsAsserts.assertGaugeGt(MetricsAsserts.java:341)
> 	at org.apache.hadoop.hdfs.server.namenode.TestCheckpoint.testCheckpoint(TestCheckpoint.java:1070)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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