lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <>
Subject Lucene not closing an IndexOutput when writing?
Date Wed, 09 Dec 2015 00:36:35 GMT
We have a Directory implementation that keeps track of who doesn't
close their IndexInput and IndexOutput.

In some test which is attempting to index documents and ultimately
timed out for other reasons (presumably triggering an interrupt,
admittedly not the sort of thing libraries are usually very good at
handling), it records that the following stack opened an IndexOutput
but didn't close it:

    java.lang.RuntimeException: unclosed IndexOutput: _0.tvx
        at org.apache.lucene.codecs.compressing.CompressingTermVectorsWriter.<init>(
        at org.apache.lucene.codecs.compressing.CompressingTermVectorsFormat.vectorsWriter(
        at org.apache.lucene.index.TermVectorsConsumer.initTermVectorsWriter(
        at org.apache.lucene.index.TermVectorsConsumer.finishDocument(
        at org.apache.lucene.index.TermsHash.finishDocument(
        at org.apache.lucene.index.DefaultIndexingChain.processDocument(
        at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(
        at org.apache.lucene.index.DocumentsWriter.updateDocument(
        at org.apache.lucene.index.IndexWriter.updateDocument(
        at org.apache.lucene.index.IndexWriter.addDocument(

This is in v5.2.1.

I don't know if this is worth a bug record yet, but I thought I would
ask where this is *supposed* to be closed, so that I can try to make a
more direct test and maybe catch it in the act.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message