cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 1bfba70
Date Wed, 20 Jan 2016 13:38:10 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 6f9215cf3 -> 1bfba70b6


CLOUDSTACK-9195: Cancelled/failed async jobs not getting cleaned up from DB
Setting 'job_complete_msid' field in async_job table when marking job as cancelled during
MS restart.
This will ensure that the job is cleaned up as part of GC thread.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a6f9181e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a6f9181e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a6f9181e

Branch: refs/heads/master
Commit: a6f9181ee15c64ce6358be855f2f5474ca1cb7ef
Parents: 7e12ebf
Author: Koushik Das <koushik@apache.org>
Authored: Tue Dec 22 13:53:29 2015 +0530
Committer: Koushik Das <koushik@apache.org>
Committed: Tue Dec 22 13:53:29 2015 +0530

----------------------------------------------------------------------
 .../apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a6f9181e/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
----------------------------------------------------------------------
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 3e1ed9c..121246b 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
@@ -1006,6 +1006,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
                         job.setStatus(JobInfo.Status.FAILED);
                         job.setResultCode(ApiErrorCode.INTERNAL_ERROR.getHttpCode());
                         job.setResult("job cancelled because of management server restart
or shutdown");
+                        job.setCompleteMsid(msid);
                         _jobDao.update(job.getId(), job);
                         if (s_logger.isDebugEnabled()) {
                             s_logger.debug("Purge queue item for cancelled job-" + job.getId());


Mime
View raw message