Repository: cloudstack
Updated Branches:
  refs/heads/4.4 0b31732bb -> f1e231252


CLOUDSTACK-7674 throw an exception when encountered
Conflicts:
        engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java


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

Branch: refs/heads/4.4
Commit: 1de10dd6dfd68dd06713d2c22350429dcdffb850
Parents: 0b31732
Author: Daan Hoogland <[email protected]>
Authored: Tue Oct 7 08:05:27 2014 +0200
Committer: Daan Hoogland <[email protected]>
Committed: Thu Oct 9 11:01:18 2014 +0200

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1de10dd6/engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java 
b/engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
index b80dbe0..ad04617 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
@@ -58,8 +58,8 @@ public class Upgrade430to431 implements DbUpgrade {
 
     private void updateVlanUris(Connection conn) {
         s_logger.debug("updating vlan URIs");
-        Exception thrown = null;
-        PreparedStatement selectstatement = null;
+        CloudRuntimeException thrown = null;
+       PreparedStatement selectstatement = null;
         ResultSet results = null;
         try{
             selectstatement = conn.prepareStatement("SELECT id, vlan_id FROM 
`cloud`.`vlan` where vlan_id not like '%:%'");
@@ -113,6 +113,9 @@ public class Upgrade430to431 implements DbUpgrade {
                 } //else don't obfuscate the original exception
             }
         }
+        if (thrown != null) {
+            throw thrown;
+        }
         s_logger.debug("Done updateing vlan URIs");
     }
 

Reply via email to