Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E24A200CB1 for ; Sat, 10 Jun 2017 00:30:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5CB11160BD4; Fri, 9 Jun 2017 22:30:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A3898160BCA for ; Sat, 10 Jun 2017 00:30:21 +0200 (CEST) Received: (qmail 45813 invoked by uid 500); 9 Jun 2017 22:30:20 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 45802 invoked by uid 99); 9 Jun 2017 22:30:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 22:30:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6F11CC090B for ; Fri, 9 Jun 2017 22:30:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id l3ZFj_6ZEGtz for ; Fri, 9 Jun 2017 22:30:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F214E5F6C8 for ; Fri, 9 Jun 2017 22:30:18 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A596E0959 for ; Fri, 9 Jun 2017 22:30:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3731C21E0C for ; Fri, 9 Jun 2017 22:30:18 +0000 (UTC) Date: Fri, 9 Jun 2017 22:30:18 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (ACCUMULO-4649) Testcases in AuditMessageIT fail consistently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 22:30:22 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Tubbs resolved ACCUMULO-4649. ----------------------------------------- Resolution: Fixed > 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 > > Time Spent: 10m > Remaining Estimate: 0h > > 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)