[
https://issues.apache.org/jira/browse/SOLR-14966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17899572#comment-17899572
]
David Smiley commented on SOLR-14966:
-------------------------------------
Noted, but this seems more of a minor optimization opportunity than a bug.
> Solr should use cache collection state to validate _stateVer_ sent by SolrJ
> ---------------------------------------------------------------------------
>
> Key: SOLR-14966
> URL: https://issues.apache.org/jira/browse/SOLR-14966
> Project: Solr
> Issue Type: Bug
> Reporter: Varun Thacker
> Priority: Major
>
> Whenever Solr receives a request with the __stateVer__ parameter it's
> supposed to validate the version the server has vs what the client has. The
> server was meant to cache the state.json for 2 seconds but it's not doing so.
>
> If you follow this
> [code|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java#L928]
> you'll see _clusterState.getCollectionOrNull(coll)_ resulting it a ZK fetch
> (
> [LazyCollectionRef|https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java#L656]
> ) . If the code was doing _clusterState.getCollectionOrNull(coll, true)_
> then we would call ZK only after the 2s TTL has expired
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]