It occures to me that IndexInput.clone() probably isn't mt-safe.
If you call clone() on an IndexInput that is being used by another
thread, you can presumably get a new IndexInput that's in an invalid
state.  BufferedIndexInput would seem susceptible.

Are lazy fields unsafe because they clone a potentially active IndexInput?
Are there other places where an IndexInput that is actually used is
cloned?  I checked only TermDocs, and it was OK...


-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to