Damans227 commented on code in PR #14089:
URL: https://github.com/apache/cloudstack/pull/14089#discussion_r4252627256
##########
server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java:
##########
@@ -1721,6 +1721,10 @@ public Snapshot allocSnapshot(Long volumeId, Long
policyId, String snapshotName,
if (snapshotName == null)
snapshotName = vmDisplayName + "_" + volume.getName() + "_" +
timeString;
+ if (_snapshotDao.findByVolumeIdAndNameNotInStatus(volumeId,
snapshotName, Snapshot.State.Destroyed, Snapshot.State.Error) != null) {
Review Comment:
what happens if an hourly and a daily schedule fire on the same volume in
the same second? the auto names would match, so looks like one of the scheduled
snapshots now fails
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]