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

Christopher Tubbs commented on ACCUMULO-4649:
---------------------------------------------

Thank you, [~skanekar]. I was able to track this down to a change in the 
configured logger format in test/src/main/log4j.properties.
It seems for readability, we changed the pattern to look like "accumulo.audit", 
but were still checking for the fully-qualified logger name 
"org.apache.accumulo.audit".
I will push a fix soon.

> Testcases in AuditMessageIT fail consistently
> ---------------------------------------------
>
>                 Key: ACCUMULO-4649
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4649
>             Project: Accumulo
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.0
>         Environment: Ubuntu:14.04
> $ java -version
> openjdk version "1.8.0_111"
> OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3~14.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>            Reporter: Sneha Kanekar
>            Assignee: Christopher Tubbs
>              Labels: ppc64le, x86
>             Fix For: 2.0.0
>
>
> All the integration tests in org.apache.accumulo.test.AuditMessageIT are 
> failing consistently with java.lang.AssersionError.
> {code:borderStyle=solid}
> Running org.apache.accumulo.test.AuditMessageIT
> Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 84.596 sec 
> <<< FAILURE! - in org.apache.accumulo.test.AuditMessageIT
> testFailedAudits(org.apache.accumulo.test.AuditMessageIT)  Time elapsed: 
> 12.07 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2> but was:<0>
>       at 
> org.apache.accumulo.test.AuditMessageIT.testFailedAudits(AuditMessageIT.java:499)
> testDataOperationsAudits(org.apache.accumulo.test.AuditMessageIT)  Time 
> elapsed: 15.363 sec  <<< FAILURE!
> java.lang.AssertionError
>       at 
> org.apache.accumulo.test.AuditMessageIT.testDataOperationsAudits(AuditMessageIT.java:404)
> testImportExportOperationsAudits(org.apache.accumulo.test.AuditMessageIT)  
> Time elapsed: 18.239 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>       at 
> org.apache.accumulo.test.AuditMessageIT.testImportExportOperationsAudits(AuditMessageIT.java:335)
> testDeniedAudits(org.apache.accumulo.test.AuditMessageIT)  Time elapsed: 
> 13.05 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>       at 
> org.apache.accumulo.test.AuditMessageIT.testDeniedAudits(AuditMessageIT.java:452)
> testTableOperationsAudits(org.apache.accumulo.test.AuditMessageIT)  Time 
> elapsed: 13.332 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>       at 
> org.apache.accumulo.test.AuditMessageIT.testTableOperationsAudits(AuditMessageIT.java:214)
> testUserOperationsAudits(org.apache.accumulo.test.AuditMessageIT)  Time 
> elapsed: 12.37 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2> but was:<0>
>       at 
> org.apache.accumulo.test.AuditMessageIT.testUserOperationsAudits(AuditMessageIT.java:250)
> {code}
> I have tested it on ppc64le and x86 platform. In each testcase, 
> getAuditMessages method returns an empty arraylist as the below if conditions 
> fail:
> {code:borderStyle=solid}
> while (it.hasNext()) {
>             String line = it.nextLine();
>             if (line.matches(".* \\[" + AuditedSecurityOperation.AUDITLOG + 
> "\\s*\\].*")) {
>               // Only include the message if startTimestamp is null. or the 
> message occurred after the startTimestamp value
>               if ((lastAuditTimestamp == null) || (line.substring(0, 
> 23).compareTo(lastAuditTimestamp) > 0))
>                 result.add(line);
>             }
> {code}
> Any update on this issue?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to