hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaobing Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9370) TestDataNodeUGIProvider fails intermittently due to non-deterministic cache expiry.
Date Tue, 03 Nov 2015 23:56:27 GMT

    [ https://issues.apache.org/jira/browse/HDFS-9370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14988511#comment-14988511
] 

Xiaobing Zhou commented on HDFS-9370:
-------------------------------------

+1.
Thanks [~cnauroth] for fix. 
Could you put your comment with awaitCacheEmptyDueToExpiration to make follow-up persons aware
of the potential pitfall?
{code}
We need to be careful not to touch the entries in the cache while we're waiting for expiration.
If we did, then that would reset the clock on expiration for those entries.
{code}

> TestDataNodeUGIProvider fails intermittently due to non-deterministic cache expiry.
> -----------------------------------------------------------------------------------
>
>                 Key: HDFS-9370
>                 URL: https://issues.apache.org/jira/browse/HDFS-9370
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Minor
>         Attachments: HDFS-9370.001.patch
>
>
> {{TestDataNodeUGIProvider}} has hard-coded sleep times waiting for background expiration
of entries in a Guava cache.  I have seen this test suite fail intermittently, because expiration
is not guaranteed to happen strictly on the boundary of the period defined by the cache's
expiration time.



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

Mime
View raw message