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

Carsten Ziegeler commented on SLING-1982:
-----------------------------------------

I moved the queue clean up out of the sync block which should solve the 
deadlock. Done in revision 1071207

> Potential deadlock if job manager is restarted
> ----------------------------------------------
>
>                 Key: SLING-1982
>                 URL: https://issues.apache.org/jira/browse/SLING-1982
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Extensions Event 3.0.0, Extensions Event 3.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Extensions Event 3.0.4
>
>
> If the manager is restarted it restarts all jobs - if at the same time a 
> cleanup is started this can lead to a deadlock as both tasks need a lock to 
> the queueLock and the backgroundSession (in reverse order)
> The manager can either be restarted through the interface or due to a 
> reconfiguration.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to