[ 
https://issues.apache.org/jira/browse/OAK-2831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Munteanu updated OAK-2831:
---------------------------------
    Attachment: OAK-2831-1.patch

> Test classes extending AbstractImportTest do not always shut down repository 
> instances properly
> -----------------------------------------------------------------------------------------------
>
>                 Key: OAK-2831
>                 URL: https://issues.apache.org/jira/browse/OAK-2831
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Robert Munteanu
>         Attachments: OAK-2831-1.patch
>
>
> In {{AbstractImportTest}} a content repository instance is unconditionally 
> created, see 
> https://github.com/apache/jackrabbit-oak/blob/38670e11ed5682b49b7a4b37203aadcd89e1de44/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/AbstractImportTest.java#L80-L83
>  . However, the repository is shutdown only if the import behaviour != null: 
> https://github.com/apache/jackrabbit-oak/blob/38670e11ed5682b49b7a4b37203aadcd89e1de44/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/AbstractImportTest.java#L133-L136
>  .
> This leads to executor instances not being closed and a large number of 
> threads being leaked. I actually get consistent build failures due to this - 
> see http://oak-dev.markmail.org/thread/k65wycf7ryxioob7



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

Reply via email to