[
https://issues.apache.org/jira/browse/HDFS-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891531#comment-13891531
]
Jimmy Xiang commented on HDFS-5882:
-----------------------------------
I was thinking to force-flush the logger to disk too, but there isn't an easy
way. With the current patch, I don't see the problem any more locally.
> TestAuditLogs is flaky
> ----------------------
>
> Key: HDFS-5882
> URL: https://issues.apache.org/jira/browse/HDFS-5882
> Project: Hadoop HDFS
> Issue Type: Test
> Reporter: Jimmy Xiang
> Assignee: Jimmy Xiang
> Priority: Minor
> Attachments: hdfs-5882.patch
>
>
> TestAuditLogs fails sometimes:
> {noformat}
> Running org.apache.hadoop.hdfs.server.namenode.TestAuditLogs
> Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 37.913 sec
> <<< FAILURE! - in org.apache.hadoop.hdfs.server.namenode.TestAuditLogs
> testAuditAllowedStat[1](org.apache.hadoop.hdfs.server.namenode.TestAuditLogs)
> Time elapsed: 2.085 sec <<< FAILURE!
> java.lang.AssertionError: null
> at org.junit.Assert.fail(Assert.java:92)
> at org.junit.Assert.assertTrue(Assert.java:43)
> at org.junit.Assert.assertNotNull(Assert.java:526)
> at org.junit.Assert.assertNotNull(Assert.java:537)
> at
> org.apache.hadoop.hdfs.server.namenode.TestAuditLogs.verifyAuditLogsRepeat(TestAuditLogs.java:312)
> at
> org.apache.hadoop.hdfs.server.namenode.TestAuditLogs.verifyAuditLogs(TestAuditLogs.java:295)
> at
> org.apache.hadoop.hdfs.server.namenode.TestAuditLogs.testAuditAllowedStat(TestAuditLogs.java:163)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)