hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13375) o.a.h.security.TestGroupsCaching.testBackgroundRefreshCounters seems flaky
Date Tue, 23 Aug 2016 02:48:20 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432026#comment-15432026

Weiwei Yang commented on HADOOP-13375:

This issue happens to me as well when I was working on some other issues. It fails quite often
as the test case uses rarely small sleep. To get rid of this issue, I had a patch that to
remove those sleep-then-check logic by wait-on-value check, it checks if the counter reaches
the expected value in a given timeout, use small interval to reduce the await time. It runs
faster than before and never fail again in my test. 

I would love to upload this patch so you guys can help to review and see if it makes sense,
but the I don't know why JIRA doesn't allow me to (I fixed several HADOOP issues before).

> o.a.h.security.TestGroupsCaching.testBackgroundRefreshCounters seems flaky
> --------------------------------------------------------------------------
>                 Key: HADOOP-13375
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13375
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security, test
>    Affects Versions: 2.8.0
>            Reporter: Mingliang Liu
> h5. Error Message
> bq. expected:<1> but was:<0>
> h5. Stacktrace
> {quote}
> java.lang.AssertionError: expected:<1> but was:<0>
> 	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.junit.Assert.assertEquals(Assert.java:542)
> 	at org.apache.hadoop.security.TestGroupsCaching.testBackgroundRefreshCounters(TestGroupsCaching.java:638)
> {quote}

This message was sent by Atlassian JIRA

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

View raw message