bug 8993: throw exception if creating snapshot on primary storage fails it may be due to previous creation desn't finish

status 8993: resolved fixed
This commit is contained in:
anthony 2011-03-17 19:17:44 -07:00
parent a41fb61ea4
commit 25d1a8dc4a

View File

@ -388,7 +388,9 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
if (!backedUp) {
throw new CloudRuntimeException("Created snapshot: " + snapshot + " on primary but failed to backup on secondary");
}
}
} else {
throw new CloudRuntimeException("Failed to create snapshot: " + snapshot + " on primary storage");
}
} finally {
// Cleanup jobs to do after the snapshot has been created; decrement resource count
if (snapshot != null) {