[ https://issues.apache.org/jira/browse/HDFS-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13892544#comment-13892544 ]
Jimmy Xiang commented on HDFS-5882: ----------------------------------- Posted v2 that force-flush the logs by closing the appenders. The flaky is mostly for the async-appender. Closing it will flush the logs. > 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, hdfs-5882_v2.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)