ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject ambari git commit: AMBARI-12657 - Cluster creates fail on larger deployments with SQL Azure DB (jonathanhurley)
Date Thu, 06 Aug 2015 20:20:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 aaf33cc03 -> 654b409ea


AMBARI-12657 - Cluster creates fail on larger deployments with SQL Azure DB (jonathanhurley)


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

Branch: refs/heads/branch-2.1
Commit: 654b409ea561b24524878760232cde6528d243a0
Parents: aaf33cc
Author: Jonathan Hurley <jhurley@hortonworks.com>
Authored: Thu Aug 6 00:26:53 2015 -0400
Committer: Jonathan Hurley <jhurley@hortonworks.com>
Committed: Thu Aug 6 16:20:01 2015 -0400

----------------------------------------------------------------------
 .../org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/654b409e/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
index afa3c08..71e6ab2 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java
@@ -78,7 +78,7 @@ public class HostRoleCommandDAO {
    * SQL template to get all requests which have had all of their tasks
    * COMPLETED
    */
-  private static final String COMPLETED_REQUESTS_SQL = "SELECT DISTINCT task.requestId FROM
HostRoleCommandEntity task WHERE NOT EXISTS (SELECT task.requestId FROM HostRoleCommandEntity
task WHERE task.status IN :notCompletedStatuses) ORDER BY task.requestId {0}";
+  private static final String COMPLETED_REQUESTS_SQL = "SELECT DISTINCT task.requestId FROM
HostRoleCommandEntity task WHERE task.status NOT IN :notCompletedStatuses ORDER BY task.requestId
{0}";
 
   @Inject
   Provider<EntityManager> entityManagerProvider;
@@ -376,9 +376,9 @@ public class HostRoleCommandDAO {
 
   @Transactional
   public void removeByHostId(Long hostId) {
-    Collection<HostRoleCommandEntity> commands = this.findByHostId(hostId);
+    Collection<HostRoleCommandEntity> commands = findByHostId(hostId);
     for (HostRoleCommandEntity cmd : commands) {
-      this.remove(cmd);
+      remove(cmd);
     }
   }
 


Mime
View raw message