mike-tutkowski commented on a change in pull request #2298: CLOUDSTACK-9620: 
Enhancements for managed storage
URL: https://github.com/apache/cloudstack/pull/2298#discussion_r159562026
 
 

 ##########
 File path: 
engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java
 ##########
 @@ -242,15 +328,99 @@ public void copyAsync(DataObject srcData, DataObject 
destData, Host destHost, As
 
                 LOGGER.warn(errMsg);
 
+                invokeCallback(errMsg, callback);
+
                 throw new UnsupportedOperationException(errMsg);
             }
 
             
handleCreateVolumeFromTemplateBothOnStorageSystem((TemplateInfo)srcData, 
(VolumeInfo)destData, callback);
 
+            return;
+        } else if (srcData instanceof VolumeInfo && destData instanceof 
VolumeInfo) {
 
 Review comment:
   I can investigate a refactor of that method. IntelliJ is also complaining 
about its inability to analyze it properly.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to