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 com.acme.storage.textindex.store.CloseCheckingDirectory.addOpenResource(CloseCheckingDirectory.java:82) at com.acme.storage.textindex.store.CloseCheckingDirectory.createOutput(CloseCheckingDirectory.java:68) at org.apache.lucene.store.TrackingDirectoryWrapper.createOutput(TrackingDirectoryWrapper.java:43) at org.apache.lucene.codecs.compressing.CompressingTermVectorsWriter.<init>(CompressingTermVectorsWriter.java:224) at org.apache.lucene.codecs.compressing.CompressingTermVectorsFormat.vectorsWriter(CompressingTermVectorsFormat.java:98) at org.apache.lucene.index.TermVectorsConsumer.initTermVectorsWriter(TermVectorsConsumer.java:88) at org.apache.lucene.index.TermVectorsConsumer.finishDocument(TermVectorsConsumer.java:103) at org.apache.lucene.index.TermsHash.finishDocument(TermsHash.java:93) at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:316) at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:232) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:458) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1363) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1142) 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. TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org