jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-8244) Build failure: ThreadLeakError
Date Tue, 08 Oct 2019 06:48:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-8244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16946554#comment-16946554

Marcel Reutegger commented on OAK-8244:

The thread names indicate these are from the thread pool used by a full repository stack build
via the Jcr factory. The failures also look very similar to OAK-2832. The fix there was to
*not* extend from BaseTokenStreamTestCase. Now it seems the test really needs the dependency
to RandomizedRunner. To fix the actual thread leak, we would have to look at tests that extend
directly or indirectly from AbstractJCRTest. That is, FacetTest and other classes in that
package. These tests use a repository constructed by SolrOakRepositoryStub and this repository
is not closed after each test. One fix I can think of is moving all those tests to the integration
test phase. But then it may be easier to just ignore the leaked threads. There seems to be
an annotation that instructs the test runner to log a warn message when it detects a leaked
thread. Worth a try?
public class DefaultAnalyzersConfigurationTest extends BaseTokenStreamTestCase {

> Build failure: ThreadLeakError
> ------------------------------
>                 Key: OAK-8244
>                 URL: https://issues.apache.org/jira/browse/OAK-8244
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: continuous integration, solr
>            Reporter: Hudson
>            Assignee: Tommaso Teofili
>            Priority: Major
>             Fix For: 1.20.0
> No description is provided
> The build Jackrabbit Oak #2091 has failed.
> First failed run: [Jackrabbit Oak #2091|https://builds.apache.org/job/Jackrabbit%20Oak/2091/]
[console log|https://builds.apache.org/job/Jackrabbit%20Oak/2091/console]
> {noformat}
> [ERROR] Tests run: 13, Failures: 0, Errors: 2, Skipped: 2, Time elapsed: 3.402 s <<<
FAILURE! - in org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultAnalyzersConfigurationTest
> [ERROR] org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultAnalyzersConfigurationTest
 Time elapsed: 3.08 s  <<< ERROR!
> com.carrotsearch.randomizedtesting.ThreadLeakError: 
> 1 thread leaked from SUITE scope at org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultAnalyzersConfigurationTest:

>    1) Thread[id=143, name=oak-scheduled-executor-61, state=TIMED_WAITING, group=main]
>         at sun.misc.Unsafe.park(Native Method)
>         at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:1129)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.poll(ScheduledThreadPoolExecutor.java:809)
>         at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> 	at __randomizedtesting.SeedInfo.seed([7416B4EE1CED31C6]:0)
> {noformat}

This message was sent by Atlassian Jira

View raw message