[
https://issues.apache.org/jira/browse/LUCENE-4855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607580#comment-13607580
]
Chris Gioran commented on LUCENE-4855:
--------------------------------------
I must apologize - i am looking back at the stack trace i have and it does not
even include closeWhileHandlingException() - i don't know how i came to this
conclusion.
For completeness, the stack trace is
{noformat}
Caused by: java.io.IOException: Illegal seek
at java.io.RandomAccessFile.seek(Native Method)
at
org.apache.lucene.store.FSDirectory$FSIndexOutput.seek(FSDirectory.java:479)
at
org.apache.lucene.index.TermInfosWriter.close(TermInfosWriter.java:244)
at org.apache.lucene.util.IOUtils.close(IOUtils.java:141)
at
org.apache.lucene.index.FormatPostingsFieldsWriter.finish(FormatPostingsFieldsWriter.java:70)
at
org.apache.lucene.index.FreqProxTermsWriter.flush(FreqProxTermsWriter.java:138)
at org.apache.lucene.index.TermsHash.flush(TermsHash.java:113)
at org.apache.lucene.index.DocInverter.flush(DocInverter.java:70)
at
org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:60)
at
org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:581)
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3623)
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3588)
at
org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2334)
at
org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2299)
{noformat}
which is still a problem for me but unrelated to the original purpose of this
bug report. I will of course close this issue.
> Potential exception in TermInfosWriter#initialize() swallowed makes debugging
> hard
> ----------------------------------------------------------------------------------
>
> Key: LUCENE-4855
> URL: https://issues.apache.org/jira/browse/LUCENE-4855
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Affects Versions: 3.6.2
> Environment: Hotspot 1.6.0_31 on Linux 64-bit
> Reporter: Chris Gioran
> Priority: Minor
>
> TermInfosWriter#initialize() can potentially fail with an exception when
> trying to write any of the values in the try block. If that happens the
> finally clause will be called and that may also fail during close(). This
> exception will mask the original one potentially hiding the real cause and
> making debugging such failures difficult.
> My particular case involves failing the first write in the initialize() and
> close() failing the seek. My code receives:
> Caused by: java.io.IOException: Illegal seek
> at java.io.RandomAccessFile.seek(Native Method) ~[na:1.6.0_31]
> at
> org.apache.lucene.store.FSDirectory$FSIndexOutput.seek(FSDirectory.java:479)
> at
> org.apache.lucene.index.TermInfosWriter.close(TermInfosWriter.java:244)
> at org.apache.lucene.util.IOUtils.close(IOUtils.java:141)
> which provides no indication as to why the initialization failed. The above
> stack trace has been created with lucene version 3.5.0 but the exception
> handling is still the same in 3.6.2
--
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: [email protected]
For additional commands, e-mail: [email protected]