Author: swagle
Date: Wed Mar 6 20:53:35 2013
New Revision: 1453550
URL: http://svn.apache.org/r1453550
Log:
AMBARI-1565. Ambari server throws EntityExistsException on transitioning from
INIT to INSTALLED state. (swagle)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
incubator/ambari/trunk/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1453550&r1=1453549&r2=1453550&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed Mar 6 20:53:35 2013
@@ -421,6 +421,9 @@ Trunk (unreleased changes):
BUG FIXES
+ AMBARI-1565. Ambari server throws EntityExistsException on transitioning
+ from INIT to INSTALLED state. (Sumit Mohanty via swagle)
+
AMBARI-1564. TestActionManager is failing on master branch. (swagle)
AMBARI-1561. API should return nagios_alerts as a JSON, not a
Modified:
incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql?rev=1453550&r1=1453549&r2=1453550&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
(original)
+++
incubator/ambari/trunk/ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
Wed Mar 6 20:53:35 2013
@@ -147,7 +147,7 @@ ALTER TABLE ambari.user_roles ADD CONSTR
ALTER TABLE ambari.hostconfigmapping ADD CONSTRAINT
FK_hostconfigmapping_cluster_id FOREIGN KEY (cluster_id) REFERENCES
ambari.clusters (cluster_id);
ALTER TABLE ambari.hostconfigmapping ADD CONSTRAINT
FK_hostconfigmapping_host_name FOREIGN KEY (host_name) REFERENCES ambari.hosts
(host_name);
-CREATE SEQUENCE ambari.host_role_command_task_id_seq START WITH 1;
+CREATE SEQUENCE ambari.host_role_command_task_id_seq INCREMENT BY 50 START
WITH 51;
GRANT ALL PRIVILEGES ON TABLE ambari.host_role_command_task_id_seq TO
:username;
Modified:
incubator/ambari/trunk/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql?rev=1453550&r1=1453549&r2=1453550&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql
(original)
+++
incubator/ambari/trunk/ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql
Wed Mar 6 20:53:35 2013
@@ -28,3 +28,6 @@ CREATE TABLE ambari.hostconfigmapping (c
GRANT ALL PRIVILEGES ON TABLE ambari.hostconfigmapping TO :username;
ALTER TABLE ambari.hostconfigmapping ADD CONSTRAINT
FK_hostconfigmapping_cluster_id FOREIGN KEY (cluster_id) REFERENCES
ambari.clusters (cluster_id);
ALTER TABLE ambari.hostconfigmapping ADD CONSTRAINT
FK_hostconfigmapping_host_name FOREIGN KEY (host_name) REFERENCES ambari.hosts
(host_name);
+
+ALTER SEQUENCE ambari.host_role_command_task_id_seq INCREMENT BY 50;
+SELECT nextval('ambari.host_role_command_task_id_seq');
\ No newline at end of file