ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject [33/51] [abbrv] ambari git commit: Fix: Cluster downscale fails on HDC due to foreign key constraint violation on topology_logical_task (Attila Doroszlai via stoader)
Date Mon, 27 Mar 2017 22:57:43 GMT
Fix: Cluster downscale fails on HDC  due to foreign key constraint violation on topology_logical_task
(Attila Doroszlai via stoader)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4336cb05
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4336cb05
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4336cb05

Branch: refs/heads/AMBARI-2.4.2.16
Commit: 4336cb05fae14220971eb3defa7f8dd7c37f6fdf
Parents: cebf9a5
Author: Attila Doroszlai <adoroszlai@hortonworks.com>
Authored: Tue Nov 29 13:11:02 2016 +0100
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Fri Dec 2 11:58:45 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/state/cluster/ClustersImpl.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4336cb05/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
index 8285065..b6f5505 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java
@@ -930,6 +930,7 @@ public class ClustersImpl implements Clusters {
           unmapHostClusterEntities(hostname, clusterId);
         }
 
+        hostDAO.refresh(entity);
         hostVersionDAO.removeByHostName(hostname);
 
         // Remove blueprint tasks before hostRoleCommands


Mime
View raw message