Varun Thacker created SOLR-14966: ------------------------------------ Summary: 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 Security Level: Public (Default Security Level. Issues are Public) Reporter: Varun Thacker
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.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org