Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8355

IW#writeSomeDocValuesUpdates might open a dropped segment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.4, 7.5, 8.0
    • None
    • core/index
    • None
    • Patch Available

    Description

         [junit4] Suite: org.apache.lucene.index.TestIndexWriterWithThreads
         [junit4]   2> Jun 12, 2018 9:09:00 AM com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[Thread-927,5,TGRP-TestIndexWriterWithThreads]
         [junit4]   2> java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]   2> 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.getConfig(IndexWriter.java:982)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.maybeFlushOrCommit(RandomIndexWriter.java:198)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:273)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]   2> 	... 1 more
         [junit4]   2> Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]   2> 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]   2> 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]   2> 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]   2> 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]   2> 	... 2 more
         [junit4]   2> 
         [junit4]   2> Jun 12, 2018 9:09:00 AM com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[Thread-928,5,TGRP-TestIndexWriterWithThreads]
         [junit4]   2> java.lang.AssertionError: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]   2> 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]   2> 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]   2> 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]   2> 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]   2> 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]   2> 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]   2> 	... 1 more
         [junit4]   2> 
         [junit4]   2> Jun 12, 2018 9:09:00 AM com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[Thread-929,5,TGRP-TestIndexWriterWithThreads]
         [junit4]   2> java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]   2> 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:677)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1280)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.softUpdateDocuments(IndexWriter.java:1343)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:262)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]   2> 	... 1 more
         [junit4]   2> Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]   2> 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]   2> 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]   2> 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]   2> 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]   2> 	... 2 more
         [junit4]   2> 
         [junit4]   2> Jun 12, 2018 9:09:00 AM com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler uncaughtException
         [junit4]   2> WARNING: Uncaught exception in thread: Thread[Thread-930,5,TGRP-TestIndexWriterWithThreads]
         [junit4]   2> java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]   2> 	at java.lang.Thread.run(Thread.java:748)
         [junit4]   2> Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:677)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1590)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]   2> 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]   2> 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]   2> 	... 1 more
         [junit4]   2> Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]   2> 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]   2> 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]   2> 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]   2> 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]   2> 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]   2> 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]   2> 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]   2> 	... 4 more
         [junit4]   2> 
         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestIndexWriterWithThreads -Dtests.method=testUpdateSingleDocWithThreads -Dtests.seed=F89419D754B7F340 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=en-PH -Dtests.timezone=Europe/Samara -Dtests.asserts=true -Dtests.file.encoding=UTF-8
         [junit4] ERROR   0.09s J3 | TestIndexWriterWithThreads.testUpdateSingleDocWithThreads <<<
         [junit4]    > Throwable #1: org.apache.lucene.store.AlreadyClosedException: refusing to delete any files: this IndexWriter hit an unrecoverable exception
         [junit4]    > 	at org.apache.lucene.index.IndexFileDeleter.ensureOpen(IndexFileDeleter.java:349)
         [junit4]    > 	at org.apache.lucene.index.IndexFileDeleter.deleteFiles(IndexFileDeleter.java:669)
         [junit4]    > 	at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:589)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.finishApply(FrozenBufferedUpdates.java:422)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.lambda$apply$0(FrozenBufferedUpdates.java:292)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:296)
         [junit4]    > 	at org.apache.lucene.index.BufferedUpdatesStream.waitApply(BufferedUpdatesStream.java:230)
         [junit4]    > 	at org.apache.lucene.index.BufferedUpdatesStream.waitApplyAll(BufferedUpdatesStream.java:143)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.applyAllDeletesAndUpdates(IndexWriter.java:3637)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:508)
         [junit4]    > 	at org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:288)
         [junit4]    > 	at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:263)
         [junit4]    > 	at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:253)
         [junit4]    > 	at org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:140)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.testUpdateSingleDocWithThreads(TestIndexWriterWithThreads.java:694)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]    > Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]    > 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]    > 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]    > 	... 1 moreThrowable #2: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1082, name=Thread-928, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
         [junit4]    > Caused by: java.lang.AssertionError: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]    > Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]    > 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]    > 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]    > 	... 1 moreThrowable #3: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1081, name=Thread-927, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
         [junit4]    > Caused by: java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]    > Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.getConfig(IndexWriter.java:982)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.maybeFlushOrCommit(RandomIndexWriter.java:198)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:273)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]    > 	... 1 more
         [junit4]    > Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]    > 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]    > 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]    > 	... 2 moreThrowable #4: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1084, name=Thread-930, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
         [junit4]    > Caused by: java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]    > Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:677)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1590)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]    > 	... 1 more
         [junit4]    > Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]    > 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]    > 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]    > 	... 4 moreThrowable #5: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=1083, name=Thread-929, state=RUNNABLE, group=TGRP-TestIndexWriterWithThreads]
         [junit4]    > Caused by: java.lang.AssertionError: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([F89419D754B7F340]:0)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:682)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [junit4]    > Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:663)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:677)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1280)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocuments(IndexWriter.java:1343)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:262)
         [junit4]    > 	at org.apache.lucene.index.TestIndexWriterWithThreads.lambda$testUpdateSingleDocWithThreads$2(TestIndexWriterWithThreads.java:679)
         [junit4]    > 	... 1 more
         [junit4]    > Caused by: java.io.FileNotFoundException: _a_1.fnm in dir=RAMDirectory@641490af lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@7685b98b
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:750)
         [junit4]    > 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:121)
         [junit4]    > 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1072)
         [junit4]    > 	at org.apache.lucene.codecs.lucene60.Lucene60FieldInfosFormat.read(Lucene60FieldInfosFormat.java:113)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.initFieldInfos(SegmentReader.java:195)
         [junit4]    > 	at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:97)
         [junit4]    > 	at org.apache.lucene.index.ReadersAndUpdates.writeFieldUpdates(ReadersAndUpdates.java:536)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.writeSomeDocValuesUpdates(IndexWriter.java:610)
         [junit4]    > 	at org.apache.lucene.index.FrozenBufferedUpdates.apply(FrozenBufferedUpdates.java:299)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.lambda$publishFrozenUpdates$3(IndexWriter.java:2586)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:5056)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1596)
         [junit4]    > 	at org.apache.lucene.index.IndexWriter.softUpdateDocument(IndexWriter.java:1653)
         [junit4]    > 	at org.apache.lucene.index.RandomIndexWriter.updateDocument(RandomIndexWriter.java:264)
         [junit4]    > 	... 2 more
         [junit4]   2> NOTE: test params are: codec=Lucene70, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@46139ed0), locale=en-PH, timezone=Europe/Samara
         [junit4]   2> NOTE: Linux 4.4.0-1060-aws amd64/Oracle Corporation 1.8.0_171 (64-bit)/cpus=16,threads=1,free=41285248,total=336592896
         [junit4]   2> NOTE: All tests run in this JVM: [TestSimpleExplanations, TestBasics, TestBytesRefAttImpl, TestFieldReuse, TestSameScoresWithThreads, TestEarlyTermination, TestAddIndexes, TestSpanOrQuery, TestRegexpQuery, TestMinimize, TestFlex, TestRollback, TestBooleanRewrites, TestVersion, TestScorerPerf, TestMultiMMap, TestWANDScorer, TestIndexingSequenceNumbers, TestAtomicUpdate, TestSmallFloat, TestIndexWriterCommit, TestTryDelete, TestIndexWriterMaxDocs, TestLMDirichletSimilarity, TestCharsRefBuilder, TestReqExclBulkScorer, TestIndexedDISI, TestNeedsScores, TestParallelTermEnum, TestDistributionSPL, TestIndexManyDocuments, TestToken, TestSimilarityProvider, TestSoftDeletesRetentionMergePolicy, TestMatchAllDocsQuery, TestSpans, TestCustomSearcherSort, TestMaxPosition, TestDuelingCodecsAtNight, TestReaderPool, Test2BSortedDocValuesOrds, TestSpanMultiTermQueryWrapper, TestIndexTooManyDocs, TestPolygon, TestByteSlices, TestHighCompressionMode, LimitedFiniteStringsIteratorTest, TestNativeFSLockFactory, TestDelegatingAnalyzerWrapper, TestSimilarity2, TestRamUsageEstimator, TestForUtil, TestDocumentsWriterStallControl, TestSingleInstanceLockFactory, TestForTooMuchCloning, TestSpanExplanations, TestIndexWriterMerging, TestPhrasePrefixQuery, TestNRTReaderCleanup, TestDocValuesQueries, Test2BPostings, TestFieldCacheRewriteMethod, TestFSTs, TestIndexWriterWithThreads]
         [junit4] Completed [219/496 (1!)] on J3 in 2.00s, 13 tests, 1 error <<< FAILURES!
      

      Attachments

        1. LUCENE-8355.patch
          3 kB
          Nhat Nguyen

        Activity

          People

            Unassigned Unassigned
            dnhatn Nhat Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: