lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
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 Solr, the open-source Lucene search server

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message