shwstppr commented on a change in pull request #4644:
URL: https://github.com/apache/cloudstack/pull/4644#discussion_r627124506
##########
File path: server/src/main/java/com/cloud/ha/HighAvailabilityManagerImpl.java
##########
@@ -795,7 +820,7 @@ private long getRescheduleTime(WorkType workType) {
case ForceStop:
return ((System.currentTimeMillis() >> 10) +
_stopRetryInterval);
case Destroy:
- return ((System.currentTimeMillis() >> 10) +
_restartRetryInterval);
+ return ((System.currentTimeMillis() >> 10) +
_stopRetryInterval);
Review comment:
@sureshanaparti clubbed `Destroy` case with other cases.
Used `_stopRetryInterval` because it uses value of config -
`stop.retry.interval`. The description for that config is - `The time in
seconds between retries to stop or destroy a VM.`
https://github.com/apache/cloudstack/blob/4.15/engine/components-api/src/main/java/com/cloud/ha/HighAvailabilityManager.java#L50-L51
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]