[ https://issues.apache.org/jira/browse/HDFS-9370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Nauroth updated HDFS-9370: -------------------------------- Attachment: HDFS-9370.001.patch With the attached patch, the test suite consistently passes in all of the environments I could find. 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. Instead, I needed to use {{VisibleForTesting}} to poke at some internals from within the test. [~xyao], would you please code review? > 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)