-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.0
-
Component/s: test
-
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)
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?
- is broken by
-
ACCUMULO-4588 Simplify Accumulo logging configuration
-
- Resolved
-