lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4595) EnwikiContentSource thread safety problem (NPE) in 'forever' mode
Date Thu, 06 Dec 2012 21:03:10 GMT

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

Doron Cohen commented on LUCENE-4595:
-------------------------------------

Jenkin's reproduce params and error log: 
{noformat}
Build: http://jenkins.sd-datasolutions.de/job/Lucene-Solr-trunk-Linux/3093/
Java: 32bit/jdk1.6.0_37 -server -XX:+UseSerialGC

1 tests failed.
FAILED:  org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSourceTest.testForever

Error Message:
Captured an uncaught exception in thread: Thread[id=140, name=Thread-2, state=RUNNABLE, group=TGRP-EnwikiContentSourceTest]

Stack Trace:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception
in thread: Thread[id=140, name=Thread-2, state=RUNNABLE, group=TGRP-EnwikiContentSourceTest]
        at __randomizedtesting.SeedInfo.seed([EF7AF10441351C3B:AB004FFFCF2C6B8C]:0)
Caused by: java.lang.NullPointerException
        at __randomizedtesting.SeedInfo.seed([EF7AF10441351C3B]:0)
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:112)
        at org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSource$Parser.run(EnwikiContentSource.java:186)
        at java.lang.Thread.run(Thread.java:662)

Build Log:
[...truncated 5173 lines...]
[junit4:junit4] Suite: org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSourceTest
[junit4:junit4]   2> 7 Δεκ 2012 6:39:53 πμ com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler
uncaughtException
[junit4:junit4]   2> WARNING: Uncaught exception in thread: Thread[Thread-2,5,TGRP-EnwikiContentSourceTest]
[junit4:junit4]   2> java.lang.NullPointerException
[junit4:junit4]   2>    at __randomizedtesting.SeedInfo.seed([EF7AF10441351C3B]:0)
[junit4:junit4]   2>    at java.io.Reader.<init>(Reader.java:61)
[junit4:junit4]   2>    at java.io.InputStreamReader.<init>(InputStreamReader.java:112)
[junit4:junit4]   2>    at org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSource$Parser.run(EnwikiContentSource.java:186)
[junit4:junit4]   2>    at java.lang.Thread.run(Thread.java:662)
[junit4:junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=EnwikiContentSourceTest
-Dtests.method=testForever -Dtests.seed=EF7AF10441351C3B -Dtests.multiplier=3 -Dtests.slow=true
-Dtests.locale=el -Dtests.timezone=SST -Dtests.file.encoding=UTF-8
[junit4:junit4] ERROR   0.07s J1 | EnwikiContentSourceTest.testForever <<<
[junit4:junit4]    > Throwable #1: com.carrotsearch.randomizedtesting.UncaughtExceptionError:
Captured an uncaught exception in thread: Thread[id=140, name=Thread-2, state=RUNNABLE, group=TGRP-EnwikiContentSourceTest]
[junit4:junit4]    >    at __randomizedtesting.SeedInfo.seed([EF7AF10441351C3B:AB004FFFCF2C6B8C]:0)
[junit4:junit4]    > Caused by: java.lang.NullPointerException
[junit4:junit4]    >    at __randomizedtesting.SeedInfo.seed([EF7AF10441351C3B]:0)
[junit4:junit4]    >    at java.io.Reader.<init>(Reader.java:61)
[junit4:junit4]    >    at java.io.InputStreamReader.<init>(InputStreamReader.java:112)
[junit4:junit4]    >    at org.apache.lucene.benchmark.byTask.feeds.EnwikiContentSource$Parser.run(EnwikiContentSource.java:186)
[junit4:junit4]    >    at java.lang.Thread.run(Thread.java:662)
[junit4:junit4]   2> NOTE: test params are: codec=Lucene41: {}, sim=DefaultSimilarity,
locale=el, timezone=SST
[junit4:junit4]   2> NOTE: Linux 3.2.0-34-generic i386/Sun Microsystems Inc. 1.6.0_37 (32-bit)/cpus=8,threads=1,free=47084536,total=64946176
[junit4:junit4]   2> NOTE: All tests run in this JVM: [TrecContentSourceTest, TestConfig,
DocMakerTest, SearchWithSortTaskTest, StreamUtilsTest, WriteLineDocTaskTest, CreateIndexTaskTest,
TestQualityRun, LineDocSourceTest, TestPerfTasksParse, AddIndexesTaskTest, PerfTaskTest, AltPackageTaskTest,
EnwikiContentSourceTest]
[junit4:junit4] Completed on J1 in 0.30s, 3 tests, 1 error <<< FAILURES!
{noformat}
                
> EnwikiContentSource thread safety problem (NPE) in 'forever' mode
> -----------------------------------------------------------------
>
>                 Key: LUCENE-4595
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4595
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/benchmark
>            Reporter: Doron Cohen
>            Assignee: Doron Cohen
>            Priority: Minor
>
> If close() is invoked around when an additional input stream reader is recreated for
the 'forever' behavior, an uncaught NPE might occur.
> This bug was probably always there, just exposed now with the EnwikioContentSourceTest
added in LUCENE-4588.

--
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


Mime
View raw message