Skip to content

Commit 1de10dd

Browse files
committed
CLOUDSTACK-7674 throw an exception when encountered
Conflicts: engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
1 parent 0b31732 commit 1de10dd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public void performDataMigration(Connection conn) {
5858

5959
private void updateVlanUris(Connection conn) {
6060
s_logger.debug("updating vlan URIs");
61-
Exception thrown = null;
62-
PreparedStatement selectstatement = null;
61+
CloudRuntimeException thrown = null;
62+
PreparedStatement selectstatement = null;
6363
ResultSet results = null;
6464
try{
6565
selectstatement = conn.prepareStatement("SELECT id, vlan_id FROM `cloud`.`vlan` where vlan_id not like '%:%'");
@@ -113,6 +113,9 @@ private void updateVlanUris(Connection conn) {
113113
} //else don't obfuscate the original exception
114114
}
115115
}
116+
if (thrown != null) {
117+
throw thrown;
118+
}
116119
s_logger.debug("Done updateing vlan URIs");
117120
}
118121

0 commit comments

Comments
 (0)