[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to