[
https://issues.apache.org/jira/browse/SOLR-17559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154381#comment-18154381
]
ASF subversion and git services commented on SOLR-17559:
--------------------------------------------------------
Commit 018509c4363650f995d05f4ff6cd8ecbb9128e9c in solr's branch
refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=018509c4363 ]
SOLR-17559: DocCollection is now more immutable (#4538)
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
> DocCollection should be fully immutable.
> ----------------------------------------
>
> Key: SOLR-17559
> URL: https://issues.apache.org/jira/browse/SOLR-17559
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud, SolrJ
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Minor
> Labels: newdev, pull-request-available
> Fix For: 10.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> DocCollection (a collection's SolrCloud state) has a number of accessors that
> return mutable data structures. The worst offender is getActiveSlicesArr,
> returning an array. To reduce the risk of accidental changes, any state
> exposure should be immutable.
> See this
> [comment|https://issues.apache.org/jira/browse/SOLR-12723?focusedCommentId=17897805&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17897805]
> for more context.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]