You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/03/04 07:22:05 UTC

[jira] [Commented] (LUCENE-6335) fail tests on threadlocal leaks

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

Robert Muir commented on LUCENE-6335:
-------------------------------------

A lot of the hacky stuff was to get something useful enough to track down the leak. It makes the code ugly to print "WeakReference<HashMap<?,Analyzer$TokenStreamComponents>>" but this is much more useful than just "java.lang.ref.WeakReference"

> fail tests on threadlocal leaks
> -------------------------------
>
>                 Key: LUCENE-6335
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6335
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Robert Muir
>         Attachments: LUCENE-6335.patch
>
>
> I know this requires us to do things like close our Analyzers in tests, but I think we should do it. just experimenting i found other leaks, e.g. in LineFileDocs.
> {noformat}
>    [junit4] ERROR   0.00s J0 | TestForceMergeForever (suite) <<<
>    [junit4]    > Throwable #1: java.lang.IllegalStateException: ThreadLocal leaks were found: 
>    [junit4]    > 1. thread=SUITE-TestForceMergeForever-seed#[AF7141C55A57350E]-worker value=WeakReference<HashMap<?,Analyzer$TokenStreamComponents>>
>    [junit4]    > 2. thread=SUITE-TestForceMergeForever-seed#[AF7141C55A57350E]-worker value=LineFileDocs$DocState
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org