[
https://issues.apache.org/jira/browse/SOLR-918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657661#action_12657661
]
Shalin Shekhar Mangar commented on SOLR-918:
--------------------------------------------
It was a HashMap in the SOLR-256 commit but I think it was changed (by me?) to
a LinkedHashMap because some users complained that the order of things in stats
pages is not the same anymore. Is it ok to let it be a ConcurrentHashMap or
should we make it a synchronized LinkedHashMap?
> Thread safety issue in SolrCore.infoRegistry
> --------------------------------------------
>
> Key: SOLR-918
> URL: https://issues.apache.org/jira/browse/SOLR-918
> Project: Solr
> Issue Type: Bug
> Reporter: Shalin Shekhar Mangar
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 1.4
>
> Attachments: SOLR-918.patch
>
>
> SolrCore.infoRegistry is used for keeping a reference to the SolrInfoMBean
> objects. When JMX is disabled, it is initialized to a LinkedHashMap which is
> not synchronized.
> We can change this to a ConcurrentHashMap instead of a LinkedHashMap.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.