[
https://issues.apache.org/jira/browse/LUCENE-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated LUCENE-3601:
--------------------------------
Attachment: LUCENE-3601.patch
patch for the issue, but i was thinking we should try to detect unreferenced
files in all tests (because hitting this fail means you randomly ran out of
disk when init'ing the writer writes its version header vints, which is rare).
The first problem (see my patch) is that IR.indexExists is returning true for
some directories where if you actually then go and open an IW on them, you will
get FNFE:
{noformat}
[junit] Testcase:
testAddOldIndexes(org.apache.lucene.index.TestBackwardsCompatibility):
Caused an ERROR
[junit] _1.cfe
[junit] java.io.FileNotFoundException: _1.cfe
[junit] at
org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:445)
[junit] at
org.apache.lucene.store.CompoundFileDirectory.readEntries(CompoundFileDirectory.java:101)
[junit] at
org.apache.lucene.store.CompoundFileDirectory.<init>(CompoundFileDirectory.java:67)
[junit] at
org.apache.lucene.index.SegmentInfo.loadFieldInfos(SegmentInfo.java:198)
[junit] at
org.apache.lucene.index.SegmentInfo.getFieldInfos(SegmentInfo.java:280)
[junit] at
org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:532)
[junit] at
org.apache.lucene.index.SegmentInfos.files(SegmentInfos.java:886)
[junit] at
org.apache.lucene.index.IndexFileDeleter.incRef(IndexFileDeleter.java:489)
[junit] at
org.apache.lucene.index.IndexFileDeleter.checkpoint(IndexFileDeleter.java:462)
[junit] at
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:278)
[junit] at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:891)
[junit] at
org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:512)
[junit] at
org.apache.lucene.index.TestBackwardsCompatibility.testAddOldIndexes(TestBackwardsCompatibility.java:218)
{noformat}
> testIWondiskfull unreferenced files failure
> -------------------------------------------
>
> Key: LUCENE-3601
> URL: https://issues.apache.org/jira/browse/LUCENE-3601
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Robert Muir
> Attachments: LUCENE-3601.patch
>
>
> NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterOnDiskFull
> -Dtestmethod=testAddDocumentOnDiskFull
> -Dtests.seed=aff9b14dd518cfb:4d2f112726e2947f:-2b03094a43a947ee
> -Dtests.multiplier=3 -Dargs="-Dfile.encoding=ISO8859-1"
> Reproduces some of the time...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]