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 34665: Ambari Upgrade Error 2.0 -> 2.1
Date Tue, 26 May 2015 09:08:43 GMT

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

(Updated Май 26, 2015, 9:08 д.п.)


Review request for Ambari, Andrew Onischuk, Myroslav Papirkovskyy, and Vitalyi Brodetskyi.


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


Repository: ambari


Description
-------

Upgrading Ambari-2.0 to Ambari-2.1 results in DB constraint error.
22 May 2015 12:06:07,654 ERROR [main] 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 "widget_pkey"
Error Code: 0
Call: INSERT INTO widget (id, author, cluster_id, default_section_name, description, metrics,
properties, scope, time_created, widget_name, widget_type, widget_values) VALUES (?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?)
	bind => [12 parameters bound]
Query: InsertObjectQuery(org.apache.ambari.server.orm.entities.WidgetLayoutEntity@1)
	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 org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149)
	at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134)
	at


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java
266d299 
  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java bdfbb1a


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


Testing
-------

unit tests passed


Thanks,

Dmytro Sen


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