Browse Source

AMBARI-2164. START_FAILED and STOP_FAILED no longer exist, the upgrade script should repair hostcomponentstate table to convert these to INSTALLED. (smohanty)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1484529 13f79535-47bb-0310-9956-ffa450edef68
Sumit Mohanty 12 years ago
parent
commit
68e7a7fe3a

+ 4 - 0
CHANGES.txt

@@ -867,6 +867,10 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-2164. START_FAILED and STOP_FAILED no longer exist, the upgrade 
+ script should repair hostcomponentstate table to convert these to i
+ INSTALLED. (smohanty)
+
  AMBARI-2156. zookeeper service check fails when zk client is not co-hosted
  with zk server. (jaimin)
 

+ 3 - 0
ambari-server/src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.3.0.sql

@@ -76,3 +76,6 @@ insert into ambari.metainfo(metainfo_key, metainfo_value)
 select 'version','1.3.0';
 
 COMMIT;
+
+UPDATE ambari.hostcomponentstate SET current_state = 'INSTALLED' WHERE current_state like 'STOP_FAILED';
+UPDATE ambari.hostcomponentstate SET current_state = 'INSTALLED' WHERE current_state like 'START_FAILED';