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 2015/04/17 00:24:00 UTC

[jira] [Updated] (SOLR-7411) Thread safety issue in SearchHandler: unsafe publication of components

     [ https://issues.apache.org/jira/browse/SOLR-7411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated SOLR-7411:
-------------------------------
    Attachment: SOLR-7411.patch

Here's a patch that fixes the issue by using a volatile.  It also tries to minimize the number of volatile reads by caching in a local variable at the start of handleRequestBody

> Thread safety issue in SearchHandler: unsafe publication of components
> ----------------------------------------------------------------------
>
>                 Key: SOLR-7411
>                 URL: https://issues.apache.org/jira/browse/SOLR-7411
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>         Attachments: SOLR-7411.patch
>
>
> Search handler falls prey to the double-checked locking bug for "components":
> http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org