lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2815) MultiFields not thread safe
Date Thu, 16 Dec 2010 22:39:04 GMT


Yonik Seeley commented on LUCENE-2815:

bq. It looks like MultiReaderBits also has issues with safe object publication. 

Actually, it looks like this one is OK with most of our current code.
SegmentReader.getDeletedDocs() returns an object stored in a volatile, so that counts as a
safe publish.  Other implementations seem to either throw an exception or directly call a
segment reader.  One exception is instantiated index (I think).

We can't call getDeletedDocs() just once up-front, because an IndexReader may still be used
to delete documents.

> MultiFields not thread safe
> ---------------------------
>                 Key: LUCENE-2815
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>             Fix For: 4.0
> MultiFields looks like it has thread safety issues

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message