From b036c32bfc39c6195b1316da77fa949dbb6e44e2 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 9 Dec 2014 15:38:58 -0800 Subject: [PATCH] if concurrent snapshot happening on the same vm, throw invalid parameter exception to user. Reviewed-by: Frank --- server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index b224beb0902..0591175ee24 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -956,7 +956,7 @@ public class SnapshotManagerImpl extends ManagerBase implements SnapshotManager, List 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"); } }