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 (JIRA)" <ji...@apache.org> on 2010/12/16 01:51:03 UTC

[jira] Commented: (LUCENE-2815) MultiFields not thread safe

    [ https://issues.apache.org/jira/browse/LUCENE-2815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971909#action_12971909 ] 

Yonik Seeley commented on LUCENE-2815:
--------------------------------------

So I started looking into MultiFields more closely, just from a performance perspective, and noticed a couple of thread safety issues:
- MultiFields is reused (a good thing), but isn't safely published to other threads.
- MultiFields has a HashMap that is used and modified unsynchronized to cache MultiTerms instances

> MultiFields not thread safe
> ---------------------------
>
>                 Key: LUCENE-2815
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2815
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Yonik Seeley
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org