Re: Getting Exception : java.nio.channels.ClosedByInterruptException

2019-04-01 Thread Robert Muir
Some code interrupted (Thread.interrupt) a java thread while it was blocked on I/O. This is not safe to do with lucene, because unfortunately in this situation java's NIO code closes file descriptors and releases locks. The second exception is because the indexwriter tried to write when it no long

Getting Exception : java.nio.channels.ClosedByInterruptException

2019-03-31 Thread Chellasamy G
Hi All, I am committing an index periodically using a scheduler. On a rare case I got the below exception in the committing thread, Lucene Version : 7.4.0 java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel