[
https://issues.apache.org/jira/browse/HADOOP-15614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16546917#comment-16546917
]
Jason Lowe commented on HADOOP-15614:
-------------------------------------
It fails reliably when run in isolation on this line:
{noformat}
assertEquals(startingRequestCount, FakeGroupMapping.getRequestCount());
{noformat}
but it also sporadically fails on this last code line below when run with the
other tests:
{noformat}
// Now sleep for a short time and re-check the request count. It should have
// increased, but the exception means the cache will not have updated
Thread.sleep(50);
FakeGroupMapping.setThrowException(false);
assertEquals(startingRequestCount + 1, FakeGroupMapping.getRequestCount());
assertEquals(groups.getGroups("me").size(), 2);
{noformat}
The 50msec sleep screams racy test to me.
> TestGroupsCaching.testExceptionOnBackgroundRefreshHandled reliably fails
> ------------------------------------------------------------------------
>
> Key: HADOOP-15614
> URL: https://issues.apache.org/jira/browse/HADOOP-15614
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Kihwal Lee
> Priority: Major
>
> When {{testExceptionOnBackgroundRefreshHandled}} is run individually, it
> reliably fails. It seems like a fundamental bug in the test or groups caching.
> A similar issue was dealt with in HADOOP-13375. [~cheersyang], do you have
> any insight into this?
> This test case was added in HADOOP-13263.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]