accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sneha Kanekar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-4649) Testcases in AuditMessageIT fails consistently
Date Thu, 08 Jun 2017 05:55:18 GMT
Sneha Kanekar created ACCUMULO-4649:
---------------------------------------

             Summary: Testcases in AuditMessageIT fails 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


All the testcases 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}



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

Mime
View raw message