[
https://issues.apache.org/jira/browse/LUCENE-3484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120791#comment-13120791
]
Mihai Caraman edited comment on LUCENE-3484 at 10/5/11 10:58 AM:
-----------------------------------------------------------------
So only the synch has changed, without those two if's... I'm checking it now
was (Author: mihai caraman):
I don't see the change from the patch above in
src/java/org/apache/lucene/facet/taxonomy/lucene/LuceneTaxonomyWriter.java in
r1178931 - 3x or higher
> TaxonomyWriter parents array creation is not thread safe, can cause NPE
> -----------------------------------------------------------------------
>
> Key: LUCENE-3484
> URL: https://issues.apache.org/jira/browse/LUCENE-3484
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/facet
> Reporter: Doron Cohen
> Assignee: Doron Cohen
> Fix For: 3.5, 4.0
>
> Attachments: LUCENE-3484.patch
>
>
> Following user list thread [TaxWriter leakage? |
> http://markmail.org/thread/jkkhemfzpnbdzoft] it appears that if two threads
> or more are asking for the parent array for the first time, a context switch
> after the first thread created the empty parents array but before it
> initialized it would cause the other array to use an uninitialized array,
> causing an NPE. Fix is simple: synchronize the method getParentArray()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]