mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
if concurrent snapshot happening on the same vm, throw invalid parameter
exception to user. Reviewed-by: Frank
This commit is contained in:
parent
8f2bd45660
commit
1eb20ee095
@ -938,7 +938,7 @@ public class SnapshotManagerImpl extends ManagerBase implements SnapshotManager,
|
||||
List<SnapshotVO> activeSnapshots =
|
||||
_snapshotDao.listByInstanceId(volume.getInstanceId(), Snapshot.State.Creating, Snapshot.State.CreatedOnPrimary, Snapshot.State.BackingUp);
|
||||
if (activeSnapshots.size() > 0) {
|
||||
throw new CloudRuntimeException("There is other active snapshot tasks on the instance to which the volume is attached, please try again later");
|
||||
throw new InvalidParameterValueException("There is other active snapshot tasks on the instance to which the volume is attached, please try again later");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user