lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject IndexInput.clone() not thread safe?
Date Thu, 19 Oct 2006 03:38:19 GMT
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


Mime
View raw message