Repository: ambari
Updated Branches:
  refs/heads/trunk 88fa680d0 -> c465e9e12


AMBARI-10889. Create data access layer for new Ambari Topology Manager state. 
UT failure. (swagle)


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

Branch: refs/heads/trunk
Commit: c465e9e125c79212c38b737d36afcbf2365ecfbb
Parents: 88fa680
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Tue May 5 11:02:45 2015 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Tue May 5 11:03:02 2015 -0700

----------------------------------------------------------------------
 .../ambari/server/upgrade/UpgradeCatalog210.java    | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c465e9e1/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
index 0845e4b..46fdbf4 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
@@ -224,12 +224,12 @@ public class UpgradeCatalog210 extends 
AbstractUpgradeCatalog {
     dbAccessor.addFKConstraint(TOPOLOGY_LOGICAL_TASK_TABLE, "FK_ltask_hrc_id", 
"physical_task_id", "host_role_command", "task_id", false, false);
 
     // Sequence updates
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_info_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_request_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_task_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_logical_request_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_logical_task_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_request_id_seq', 0);", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_info_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_request_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_host_task_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_logical_request_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_logical_task_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('topology_request_id_seq', 0)", false);
   }
 
   /**
@@ -532,8 +532,8 @@ public class UpgradeCatalog210 extends 
AbstractUpgradeCatalog {
     dbAccessor.addColumn("users", new DBColumnInfo("active_widget_layouts", 
String.class, 1024, null, true));
 
     // Sequence updates
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('widget_id_seq', 0);", false);
-    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('widget_layout_id_seq', 0);", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('widget_id_seq', 0)", false);
+    dbAccessor.executeQuery("INSERT INTO ambari_sequences(sequence_name, 
sequence_value) values ('widget_layout_id_seq', 0)", false);
   }
 
   /**

Reply via email to