lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Li" <>
Subject Re: [jira] Commented: (LUCENE-690) LazyField use of IndexInput not thread safe
Date Thu, 19 Oct 2006 20:24:29 GMT
> I don't think that's sufficient in part because the IndexInput's state is manipulated
outside that sync block.  The sync block is to protect the file only, not the IndexInput,
which isn't thread-safe (by design).

Correct, that sync block only protects the file. It and the rest of
FSIndexInput makes FSIndexInput thread-safe.

Not copying the buffer content (nor buffer states) in
BufferedIndexInput will make BufferedIndexInput thread-safe. But how
much will this affect performance?

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

View raw message