Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4649

Testcases in AuditMessageIT fail consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • test
    • 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)

    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

          Activity

            People

              ctubbsii Christopher Tubbs
              skanekar Sneha Kanekar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m