You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Gus Heck (Jira)" <ji...@apache.org> on 2022/04/26 17:56:00 UTC
[jira] [Commented] (SOLR-14966) Solr should use cache collection state to validate _stateVer_ sent by SolrJ
[ https://issues.apache.org/jira/browse/SOLR-14966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528336#comment-17528336 ]
Gus Heck commented on SOLR-14966:
---------------------------------
The code links in the description above have become broken, I think the first one is meant to be:
[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java#L1104]
[~varun] can you confirm?
> 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.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org