hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Badger (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HDFS-5805) TestCheckpoint.testCheckpoint fails intermittently on branch2
Date Fri, 10 Jun 2016 13:41:21 GMT

     [ 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

> 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

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

View raw message