Rarely, my production application encounters an unexpected ClosedByInterruptException
when invoking methods on a FileChannel
. According to Java documentation, this occurs when the invoking thread is in the interrupted state. Interestingly, my application never interrupts any threads. This appears to be occurring from below the application. Some kind of system interrupt perhaps? Has anyone encountered this issue?
java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end( \
AbstractInterruptibleChannel.java:184)
at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:314)
...