[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15067744#comment-15067744
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9195:
--------------------------------------------

GitHub user koushik-das opened a pull request:

    https://github.com/apache/cloudstack/pull/1272

    CLOUDSTACK-9195: Cancelled/failed async jobs not getting cleaned up f…

    …rom 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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/koushik-das/cloudstack CLOUDSTACK-9195

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1272.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1272
    
----
commit a6f9181ee15c64ce6358be855f2f5474ca1cb7ef
Author: Koushik Das <[email protected]>
Date:   2015-12-22T08:23:29Z

    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.

----


> Cancelled/failed async jobs not getting cleaned up from DB
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-9195
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9195
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.6.0, 4.7.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.8.0
>
>
> Some cancelled/failed async jobs are not getting cleaned up from DB even 
> after "job.expire.minutes". These jobs are marked as cancelled/failed when MS 
> is restarted, check for 'job_status' as 2 (FAILED) and 'job_result' as "job 
> cancelled because of management server restart or shutdown" in async_job 
> table in DB. These are not getting cleaned as 'job_complete_msid' field is 
> not set in DB.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to