-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34665/
-----------------------------------------------------------
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
-----
ambari-admin/pom.xml 5fa3561
ambari-agent/pom.xml 1cf3b71
ambari-client/groovy-client/pom.xml dc8d888
ambari-client/pom.xml 82fea14
ambari-client/python-client/pom.xml 73a6825
ambari-metrics/ambari-metrics-assembly/pom.xml 56e8a38
ambari-metrics/ambari-metrics-common/pom.xml 2e32eb4
ambari-metrics/ambari-metrics-flume-sink/pom.xml 01c2c7f
ambari-metrics/ambari-metrics-hadoop-sink/pom.xml 08de87d
ambari-metrics/ambari-metrics-host-monitoring/pom.xml 746949b
ambari-metrics/ambari-metrics-kafka-sink/pom.xml a4361b0
ambari-metrics/ambari-metrics-storm-sink/pom.xml c4bc676
ambari-metrics/ambari-metrics-timelineservice/pom.xml 2485661
ambari-metrics/pom.xml f0cb433
ambari-project/pom.xml b1db47b
ambari-server/pom.xml 4158d95
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
ambari-shell/ambari-groovy-shell/pom.xml 7d2f6da
ambari-shell/ambari-python-shell/pom.xml c4dddf4
ambari-shell/pom.xml c0568a6
ambari-views/pom.xml 8fcb5ae
ambari-web/pom.xml aefeff1
contrib/views/capacity-scheduler/pom.xml 2712953
contrib/views/files/pom.xml 5350c48
contrib/views/hive/pom.xml da7e1a1
contrib/views/pig/pom.xml 568e668
contrib/views/pom.xml 6eb6aeb
contrib/views/slider/pom.xml 5cf06ca
contrib/views/tez/pom.xml 8e18702
pom.xml 62cf8eb
Diff: https://reviews.apache.org/r/34665/diff/
Testing
-------
unit tests passed
Thanks,
Dmytro Sen