Re: Review Request 46218: AlertReceivedListenerTest is Flaky When Running @Before Code
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46218/#review128968 --- Ship it! Ship It! - Sid Wagle On April 14, 2016, 7:27 p.m., Jonathan Hurley wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/46218/ > --- > > (Updated April 14, 2016, 7:27 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Nate Cole, and Sid Wagle. > > > Bugs: AMBARI-15895 > https://issues.apache.org/jira/browse/AMBARI-15895 > > > Repository: ambari > > > Description > --- > > The {{AlertReceivedListenerTest}} occasionally fails with: > > ``` > 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: 2 > 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: 2 > 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) > ``` > > > Diffs > - > > ambari-project/pom.xml 21c5baf > > ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java > 28aa19a > > Diff: https://reviews.apache.org/r/46218/diff/ > > > Testing > --- > > mvn clean test > > > Thanks, > > Jonathan Hurley > >
Re: Review Request 46218: AlertReceivedListenerTest is Flaky When Running @Before Code
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46218/#review128964 --- Ship it! Ship It! - Nate Cole On April 14, 2016, 3:27 p.m., Jonathan Hurley wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/46218/ > --- > > (Updated April 14, 2016, 3:27 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Nate Cole, and Sid Wagle. > > > Bugs: AMBARI-15895 > https://issues.apache.org/jira/browse/AMBARI-15895 > > > Repository: ambari > > > Description > --- > > The {{AlertReceivedListenerTest}} occasionally fails with: > > ``` > 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: 2 > 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: 2 > 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) > ``` > > > Diffs > - > > ambari-project/pom.xml 21c5baf > > ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java > 28aa19a > > Diff: https://reviews.apache.org/r/46218/diff/ > > > Testing > --- > > mvn clean test > > > Thanks, > > Jonathan Hurley > >
Review Request 46218: AlertReceivedListenerTest is Flaky When Running @Before Code
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/46218/ --- Review request for Ambari, Alejandro Fernandez, Nate Cole, and Sid Wagle. Bugs: AMBARI-15895 https://issues.apache.org/jira/browse/AMBARI-15895 Repository: ambari Description --- The {{AlertReceivedListenerTest}} occasionally fails with: ``` 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: 2 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: 2 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) ``` Diffs - ambari-project/pom.xml 21c5baf ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertReceivedListenerTest.java 28aa19a Diff: https://reviews.apache.org/r/46218/diff/ Testing --- mvn clean test Thanks, Jonathan Hurley