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 C09EA200CB0 for ; Fri, 9 Jun 2017 00:06:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BF478160BE5; Thu, 8 Jun 2017 22:06:29 +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 11D15160BD5 for ; Fri, 9 Jun 2017 00:06:28 +0200 (CEST) Received: (qmail 9839 invoked by uid 500); 8 Jun 2017 22:06:23 -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 9722 invoked by uid 99); 8 Jun 2017 22:06:23 -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; Thu, 08 Jun 2017 22:06:23 +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 CC3AAC090C for ; Thu, 8 Jun 2017 22:06:22 +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 hqC074vhSgkz for ; Thu, 8 Jun 2017 22:06:21 +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 18C9D5FD16 for ; Thu, 8 Jun 2017 22:06:21 +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 E9C99E0DCD for ; Thu, 8 Jun 2017 22:06:19 +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 8729D21E1D for ; Thu, 8 Jun 2017 22:06:18 +0000 (UTC) Date: Thu, 8 Jun 2017 22:06:18 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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: Thu, 08 Jun 2017 22:06:29 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16043525#comment-16043525 ] Christopher Tubbs commented on ACCUMULO-4649: --------------------------------------------- This is almost certainly a bad log4j configuration during the test scope. Have you double-checked your test classpath to ensure there aren't any strange log configuration files in it? How are you launching the test? > 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 > Labels: ppc64le, x86 > > 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)