Robert Muir created LUCENE-5946:
-----------------------------------
Summary: Change SimpleFSDirectory to use newByteChannel
Key: LUCENE-5946
URL: https://issues.apache.org/jira/browse/LUCENE-5946
Project: Lucene - Core
Issue Type: Bug
Reporter: Robert Muir
Currently our javadocs point to using SimpleFSDirectory "to avoid
ClosedByInterruptException".
But this is really bogus. If you interrupt() a thread doing i/o, then you need
to be prepared for the consequences. Its just that RAF is broken and not
interruptible at all, but that shouldnt justify us continuing to use it.
SimpleFSDirectory should be "the most portable", so it should use
Files.newByteChannel. And we should remove the javadocs/warnings about
ClosedByInterrupt
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]