harikrishna-patnala commented on code in PR #8107:
URL: https://github.com/apache/cloudstack/pull/8107#discussion_r1372613484
##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterScaleWorker.java:
##########
@@ -299,8 +298,8 @@ private void scaleKubernetesClusterOffering() throws
CloudRuntimeException {
boolean result = false;
try {
result = userVmManager.upgradeVirtualMachine(userVM.getId(),
serviceOffering.getId(), new HashMap<String, String>());
- } catch (ResourceUnavailableException | ManagementServerException
| ConcurrentOperationException | VirtualMachineMigrationException e) {
- logTransitStateAndThrow(Level.ERROR, String.format("Scaling
Kubernetes cluster : %s failed, unable to scale cluster VM : %s",
kubernetesCluster.getName(), userVM.getDisplayName()),
kubernetesCluster.getId(), KubernetesCluster.Event.OperationFailed, e);
+ } catch (CloudRuntimeException | ResourceUnavailableException |
ManagementServerException | VirtualMachineMigrationException e) {
Review Comment:
ConcurrentOperationException is extending CloudRuntimeException, so its not
required or it is not allowed to have both.
`public class ConcurrentOperationException extends CloudRuntimeException {`
--
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]