Details
Description
All the integration tests in org.apache.accumulo.test.AuditMessageIT are failing consistently with java.lang.AssersionError.
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)
I have tested it on ppc64le and x86 platform. In each testcase, getAuditMessages method returns an empty arraylist as the below if conditions fail:
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); }
Any update on this issue?
Attachments
Issue Links
- is broken by
-
ACCUMULO-4588 Simplify Accumulo logging configuration
- Resolved