ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen" <d...@hortonworks.com>
Subject Re: Review Request 37391: Exceptions in ambari-server log: duplicate key value violates unique constraint "uni_alert_group_name"
Date Wed, 12 Aug 2015 11:59:10 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37391/
-----------------------------------------------------------

(Updated Авг. 12, 2015, 11:59 д.п.)


Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-12731
    https://issues.apache.org/jira/browse/AMBARI-12731


Repository: ambari


Description
-------

This looks related to security enabling/disabling
11 Aug 2015 13:18:00,191  INFO [Thread-23] QuartzScheduler:575 - Scheduler ExecutionScheduler_$_NON_CLUSTERED
started.
11 Aug 2015 13:20:04,789 ERROR [pool-2-thread-1] AmbariJpaLocalTxnInterceptor:114 - [DETAILED
ERROR] Rollback reason: 
Local Exception Stack: 
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates
unique constraint "uni_alert_group_name"
Error Code: 0
Call: INSERT INTO alert_group (group_id, cluster_id, group_name, is_default, service_name)
VALUES (?, ?, ?, ?, ?)
	bind => [5 parameters bound]
	at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.processExceptionForCommError(DatabaseAccessor.java:1611)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:898)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:962)
	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:631)
	at


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/events/listeners/alerts/AlertServiceStateListener.java
41f9e81 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDispatchDAO.java a372748


Diff: https://reviews.apache.org/r/37391/diff/


Testing
-------

Unit tests passed


Thanks,

Dmytro Sen


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message