You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/01/30 16:43:12 UTC

[jira] [Commented] (LUCENE-4736) Some tests fail with IBM J9 due to strange TimerThread zombies that cannot be killed

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

Michael McCandless commented on LUCENE-4736:
--------------------------------------------

This is what Dawid said on the dev list:
{noformat}
> [junit4:junit4]    >    1) Thread[id=102, name=Thread-44,
> state=TIMED_WAITING, group=TGRP-TestIndexWriterDelete]
> [junit4:junit4]    >         at java.lang.Object.wait(Native Method)
> [junit4:junit4]    >         at java.lang.Object.wait(Object.java:196)
> [junit4:junit4]    >         at java.util.Timer$TimerImpl.run(Timer.java:247)

The question is what starts these Timer threads? I mean: we can
exclude such threads but I'd do some digging first to see if it's not
an error. The thread's name looks suspiciously un-VM-like to me (it's
too generic).

> It looks like this is a JVM thread ... is there an "exceptions list"
> somewhere to ignore this thread?  Or some other solution?

There are several ways to ignore threads. You can annotate a method
(or class) so that it ignores thread-checking entirely, you can add
the known offenders to ignored filters. Take a look at
SolrIgnoredThreadsFilter for real-life examples; Lucene uses
QuickPatchThreadsFilter (it's currently empty).

If you can name the J9 version and test/seed that causes this I'll
take a look at the root of the problem first.
{noformat}
                
> Some tests fail with IBM J9 due to strange TimerThread zombies that cannot be killed
> ------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4736
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4736
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>
> EG:
> {noformat}
> ant test -Dtestcase=TestIndexWriterDelete -Dtests.seed=A22BC3E06CEC0036
> {noformat}
> Takes a while and then fails with this:
> {noformat}
> [junit4:junit4] ERROR   0.00s J2 | TestIndexWriterDelete (suite) <<<
> [junit4:junit4]    > Throwable #1:
> com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked
> from SUITE scope at org.apache.lucene.index.TestIndexWriterDelete:
> [junit4:junit4]    >    1) Thread[id=102, name=Thread-44,
> state=TIMED_WAITING, group=TGRP-TestIndexWriterDelete]
> [junit4:junit4]    >         at java.lang.Object.wait(Native Method)
> [junit4:junit4]    >         at java.lang.Object.wait(Object.java:196)
> [junit4:junit4]    >         at java.util.Timer$TimerImpl.run(Timer.java:247)
> [junit4:junit4]    >    at __randomizedtesting.SeedInfo.seed([C9014BCB129899BF]:0)
> [junit4:junit4]    > Throwable #2:
> com.carrotsearch.randomizedtesting.ThreadLeakError: There are still
> zombie threads that couldn't be terminated:
> [junit4:junit4]    >    1) Thread[id=102, name=Thread-44,
> state=TIMED_WAITING, group=TGRP-TestIndexWriterDelete]
> [junit4:junit4]    >         at java.lang.Object.wait(Native Method)
> [junit4:junit4]    >         at java.lang.Object.wait(Object.java:196)
> [junit4:junit4]    >         at java.util.Timer$TimerImpl.run(Timer.java:247)
> [junit4:junit4]    >    at __randomizedtesting.SeedInfo.seed([C9014BCB129899BF]:0)
> {noformat}
> Java version is:
> {noformat}
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pxa6460sr9fp2ifix-20111111_05(SR9 FP2+IV03622+IV02378+IZ99243+IZ97310+IV00707))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr9-20111111_94827 (JIT enabled, AOT enabled)
> J9VM - 20111111_094827
> JIT  - r9_20101028_17488ifx45
> GC   - 20101027_AA)
> JCL  - 20110727_04
> {noformat}
> Curiously, I think it tends to happen on a test that fails an assumption?  Or maybe I'm just imagining that ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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