You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Yonik Seeley <yo...@apache.org> on 2006/10/19 05:38:19 UTC
IndexInput.clone() not thread safe?
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org