[
https://issues.apache.org/jira/browse/SOLR-13897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985479#comment-16985479
]
Shalin Shekhar Mangar commented on SOLR-13897:
----------------------------------------------
This patch adds registerTerm inside ZkCollectionTerms so that it is called
after synchronizing on the same terms object as that used for the remove. I
couldn't quite make out a condition where both could happen concurrently but it
makes me sleep better knowing that they absolutely cannot.
> Unsafe publication of Terms object in ZkShardTerms
> --------------------------------------------------
>
> Key: SOLR-13897
> URL: https://issues.apache.org/jira/browse/SOLR-13897
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Affects Versions: 8.2, 8.3
> Reporter: Shalin Shekhar Mangar
> Priority: Major
> Fix For: master (9.0), 8.4
>
> Attachments: SOLR-13897.patch, SOLR-13897.patch, SOLR-13897.patch
>
>
> The Terms object in ZkShardTerms is written using a write lock but reading is
> allowed freely. This is not safe and can cause visibility issues and
> associated race conditions under contention.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]