cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9114) restartnetwork with cleanup should not update/restart both routers at once
Date Mon, 30 Apr 2018 10:00:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-9114:

rafaelweingartner commented on a change in pull request #2508: CLOUDSTACK-9114: Reduce VR
downtime during network restart

 File path: server/src/com/cloud/network/vpc/
 @@ -1508,19 +1519,33 @@ public boolean restartVpc(final long vpcId, final boolean cleanUp,
final boolean
                 // Change the VPC in order to get it updated after the end of
                 // the restart procedure.
-                _vpcDao.update(vpc.getId(), entity);
+                if (_vpcDao.update(vpc.getId(), entity)) {
+                    vpc = entity;
+                }
                 // If the offering and redundant column are changing, force the
                 // clean up.
                 forceCleanup = true;
             if (forceCleanup) {
 Review comment:
   Yes it is, if you consider only the body of the IF, but the method is already quite big.
 The more we extract, the more unit tests we enable. Moreover, it becomes easier to read the

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:

> restartnetwork with cleanup should not update/restart both routers at once
> --------------------------------------------------------------------------
>                 Key: CLOUDSTACK-9114
>                 URL:
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Wei Zhou
>            Assignee: Wei Zhou
>            Priority: Major
> for now, restartnetwork with cleanup will stop both RVRs at first, then start two  new
> to reduce the downtime of network, we'd better restart the RVRs one by one.

This message was sent by Atlassian JIRA

View raw message