lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-6616) IndexWriter should list files once on init, and IFD should not suppress FNFE
Date Fri, 26 Jun 2015 14:05:04 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless updated LUCENE-6616:
---------------------------------------
    Attachment: LUCENE-6616.patch

Initial patch, but there are some interesting test failures I need to explain ... e.g.:

{noformat}
   [junit4] Suite: org.apache.lucene.store.TestSingleInstanceLockFactory
   [junit4]   1> Stress Test Index Writer: creation hit unexpected exception: java.io.FileNotFoundException:
_u.si in dir=RAMDirectory@13f6d49b lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@b554224
   [junit4]   1> java.io.FileNotFoundException: _u.si in dir=RAMDirectory@13f6d49b lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@b554224
   [junit4]   1> 	at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:641)
   [junit4]   1> 	at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:109)
   [junit4]   1> 	at org.apache.lucene.store.MockDirectoryWrapper.openChecksumInput(MockDirectoryWrapper.java:1009)
   [junit4]   1> 	at org.apache.lucene.codecs.lucene50.Lucene50SegmentInfoFormat.read(Lucene50SegmentInfoFormat.java:82)
   [junit4]   1> 	at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:341)
   [junit4]   1> 	at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:167)
   [junit4]   1> 	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:861)
   [junit4]   1> 	at org.apache.lucene.store.BaseLockFactoryTestCase$WriterThread.run(BaseLockFactoryTestCase.java:194)
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestSingleInstanceLockFactory
-Dtests.method=testStressLocks -Dtests.seed=69B8EFFDA6F51AA0 -Dtests.locale=et_EE -Dtests.timezone=America/Martinique
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] FAILURE 1.04s J3 | TestSingleInstanceLockFactory.testStressLocks <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: IndexWriter hit unexpected exceptions
   [junit4]    > 	at __randomizedtesting.SeedInfo.seed([69B8EFFDA6F51AA0:3789A100BA59D2C6]:0)
   [junit4]    > 	at org.apache.lucene.store.BaseLockFactoryTestCase.testStressLocks(BaseLockFactoryTestCase.java:169)
   [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> NOTE: leaving temporary files on disk at: /l/iwcleanup/lucene/build/core/test/J3/temp/lucene.store.TestSingleInstanceLockFactory_69B8EFFDA6F51AA0-001
   [junit4]   2> NOTE: test params are: codec=DummyCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=DUMMY,
chunkSize=7, maxDocsPerChunk=653, blockSize=3), termVectorsFormat=CompressingTermVectorsFormat(compressionMode=DUMMY,
chunkSize=7, blockSize=3)), sim=DefaultSimilarity, locale=et_EE, timezone=America/Martinique
   [junit4]   2> NOTE: Linux 3.13.0-46-generic amd64/Oracle Corporation 1.8.0_40 (64-bit)/cpus=8,threads=1,free=488824136,total=518520832
   [junit4]   2> NOTE: All tests run in this JVM: [TestToken, TestNRTReaderCleanup, TestFlex,
TestTermsEnum2, TestPayloads, TestForTooMuchCloning, TestDocIdSet, TestSpanExplanationsOfNonMatches,
TestSortedNumericSortField, TestDocumentsWriterDeleteQueue, TestSpanNearQuery, TestIndexWriterDelete,
TestSparseFixedBitSet, TestMultiLevelSkipList, TestSingleInstanceLockFactory]
   [junit4] Completed [45/393] on J3 in 1.17s, 7 tests, 1 failure <<< FAILURES!
{noformat}

> IndexWriter should list files once on init, and IFD should not suppress FNFE
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-6616
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6616
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 5.3, Trunk
>
>         Attachments: LUCENE-6616.patch
>
>
> Some nice ideas [~rcmuir] had for cleaning up IW/IFD on init ...



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


Mime
View raw message