You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2017/12/11 10:12:00 UTC

[jira] [Created] (LUCENE-8090) IndexWriter#flushNextBuffer can cause NPE

Simon Willnauer created LUCENE-8090:
---------------------------------------

             Summary: IndexWriter#flushNextBuffer can cause NPE
                 Key: LUCENE-8090
                 URL: https://issues.apache.org/jira/browse/LUCENE-8090
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: master (8.0), 7.2, 7.3
            Reporter: Simon Willnauer
            Assignee: Simon Willnauer
            Priority: Blocker
             Fix For: master (8.0), 7.2, 7.3


There is a missing synchronized statment in DocumentsWriterFlushControl causing failures like this:

{code}
04:07:06    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestIndexWriterDelete -Dtests.method=testDeleteAllNoDeadLock -Dtests.seed=D43A2A18EB61840A -Dtests.slow=true -Dtests.locale=sv-SE -Dtests.timezone=Pacific/Kosrae -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
04:07:06    [junit4] ERROR   0.21s J1 | TestIndexWriterDelete.testDeleteAllNoDeadLock <<<
04:07:06    [junit4]    > Throwable #1: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=516, name=Thread-413, state=RUNNABLE, group=TGRP-TestIndexWriterDelete]
04:07:06    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([D43A2A18EB61840A:E723C5066BA23E5C]:0)
04:07:06    [junit4]    > Caused by: java.lang.RuntimeException: java.lang.NullPointerException
04:07:06    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([D43A2A18EB61840A]:0)
04:07:06    [junit4]    > 	at org.apache.lucene.index.TestIndexWriterDelete$1.run(TestIndexWriterDelete.java:332)
04:07:06    [junit4]    > Caused by: java.lang.NullPointerException
04:07:06    [junit4]    > 	at org.apache.lucene.index.DocumentsWriterFlushControl.findLargestNonPendingWriter(DocumentsWriterFlushControl.java:730)
04:07:06    [junit4]    > 	at org.apache.lucene.index.DocumentsWriterFlushControl.checkoutLargestNonPendingWriter(DocumentsWriterFlushControl.java:750)
04:07:06    [junit4]    > 	at org.apache.lucene.index.DocumentsWriter.flushOneDWPT(DocumentsWriter.java:256)
04:07:06    [junit4]    > 	at org.apache.lucene.index.IndexWriter.flushNextBuffer(IndexWriter.java:3203)
04:07:06    [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.maybeFlushOrCommit(RandomIndexWriter.java:189)
04:07:06    [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:174)
04:07:06    [junit4]    > 	at org.apache.lucene.index.TestIndexWriterDelete$1.run(TestIndexWriterDelete.java:326)
04:07:06    [junit4]   2> NOTE: test params are: codec=CheapBastard, sim=RandomSimilarity(queryNorm=false): {field=DFR I(ne)1, contents=DFR G3(800.0), city=DFR G1, id=LM Jelinek-Mercer(0.100000), content=DFR I(ne)B1}, locale=sv-SE, timezone=Pacific/Kosrae
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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