Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 94BD31907E for ; Thu, 14 Apr 2016 22:00:27 +0000 (UTC) Received: (qmail 17503 invoked by uid 500); 14 Apr 2016 22:00:27 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 17401 invoked by uid 500); 14 Apr 2016 22:00:27 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 17275 invoked by uid 99); 14 Apr 2016 22:00:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 22:00:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BB7F32C1F6F for ; Thu, 14 Apr 2016 22:00:26 +0000 (UTC) Date: Thu, 14 Apr 2016 22:00:26 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15895) AlertReceivedListenerTest is Flaky When Running @Before Code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241996#comment-15241996 ] Hudson commented on AMBARI-15895: --------------------------------- FAILURE: Integrated in Ambari-branch-2.2 #636 (See [https://builds.apache.org/job/Ambari-branch-2.2/636/]) AMBARI-15895 - AlertReceivedListenerTest is Flaky When Running @Before (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d050e74b9b53e11969e1cfc21a929f88ca4571b9]) * ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java * ambari-project/pom.xml > AlertReceivedListenerTest is Flaky When Running @Before Code > ------------------------------------------------------------ > > Key: AMBARI-15895 > URL: https://issues.apache.org/jira/browse/AMBARI-15895 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.2.2 > Reporter: Jonathan Hurley > Assignee: Jonathan Hurley > Priority: Critical > Fix For: 2.2.2 > > Attachments: AMBARI-15895.patch > > > The {{AlertReceivedListenerTest}} occasionally fails with: > {code} > javax.persistence.PersistenceException: > Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException > Internal Exception: java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'UNQ_ALERT_GROUP_0' defined on 'ALERT_GROUP'. > Error Code: 20000 > Call: INSERT INTO alert_group (group_id, cluster_id, group_name, is_default, service_name) VALUES (?, ?, ?, ?, ?) > bind => [5 parameters bound] > at org.apache.ambari.server.state.alerts.AlertReceivedListenerTest.setup(AlertReceivedListenerTest.java:120) > Caused by: org.eclipse.persistence.exceptions.DatabaseException: > Internal Exception: java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'UNQ_ALERT_GROUP_0' defined on 'ALERT_GROUP'. > Error Code: 20000 > Call: INSERT INTO alert_group (group_id, cluster_id, group_name, is_default, service_name) VALUES (?, ?, ?, ?, ?) > bind => [5 parameters bound] > at org.apache.ambari.server.state.alerts.AlertReceivedListenerTest.setup(AlertReceivedListenerTest.java:120) > Caused by: java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'UNQ_ALERT_GROUP_0' defined on 'ALERT_GROUP'. > at org.apache.ambari.server.state.alerts.AlertReceivedListenerTest.setup(AlertReceivedListenerTest.java:120) > Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'UNQ_ALERT_GROUP_0' defined on 'ALERT_GROUP'. > at org.apache.ambari.server.state.alerts.AlertReceivedListenerTest.setup(AlertReceivedListenerTest.java:120) > Caused by: org.apache.derby.iapi.error.StandardException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'UNQ_ALERT_GROUP_0' defined on 'ALERT_GROUP'. > at org.apache.ambari.server.state.alerts.AlertReceivedListenerTest.setup(AlertReceivedListenerTest.java:120) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)