You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2017/08/19 19:10:48 UTC
[cloudstack] branch master updated: CLOUDSTACK-9939: Volumes stuck
in Creating state while restarting the Management Server when the volume
creation is in progress (#2163)
This is an automated email from the ASF dual-hosted git repository.
bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new a40e0f0 CLOUDSTACK-9939: Volumes stuck in Creating state while restarting the Management Server when the volume creation is in progress (#2163)
a40e0f0 is described below
commit a40e0f0097ec5776c43f205383021138f33a68d1
Author: pavanaravapalli <pa...@accelerite.com>
AuthorDate: Sun Aug 20 00:40:43 2017 +0530
CLOUDSTACK-9939: Volumes stuck in Creating state while restarting the Management Server when the volume creation is in progress (#2163)
---
.../apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
index 9b6aa7c..42e15b5 100644
--- a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
+++ b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
@@ -84,6 +84,7 @@ import com.cloud.utils.exception.CloudRuntimeException;
import com.cloud.utils.exception.ExceptionUtil;
import com.cloud.utils.mgmt.JmxUtil;
import com.cloud.vm.dao.VMInstanceDao;
+import com.cloud.storage.dao.VolumeDao;
public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager, ClusterManagerListener, Configurable {
// Advanced
@@ -123,6 +124,8 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
private VMInstanceDao _vmInstanceDao;
@Inject
private VolumeDetailsDao _volumeDetailsDao;
+ @Inject
+ private VolumeDao _volsDao;
private volatile long _executionRunNumber = 1;
@@ -1020,6 +1023,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
try {
_volumeDetailsDao.removeDetail(job.getInstanceId(), "SNAPSHOT_ID");
+ _volsDao.remove(job.getInstanceId());
} catch (Exception e) {
s_logger.error("Unexpected exception while removing concurrent request meta data :" + e.getLocalizedMessage());
}
--
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <co...@cloudstack.apache.org>'].