[
https://issues.apache.org/jira/browse/SOLR-6854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14295490#comment-14295490
]
Anshum Gupta commented on SOLR-6854:
------------------------------------
It makes sense for this to be in 5.0. It's a change related to something that'd
be released with 5.0, so yes.
Thanks for fixing this Noble.
> Stale cached state in CloudSolrClient
> -------------------------------------
>
> Key: SOLR-6854
> URL: https://issues.apache.org/jira/browse/SOLR-6854
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud, SolrJ
> Reporter: Jessica Cheng Mallet
> Assignee: Noble Paul
> Labels: cache, solrcloud, solrj
> Fix For: Trunk, 5.1
>
> Attachments: SOLR-6854.patch, SOLR-6854.patch
>
>
> CloudSolrServer’s cached state is not being updated for a newly created
> collection if we started polling for the collection state too early and a
> "down" state is cached. Requests to the newly created collection continues to
> fail with "No live SolrServers available to handle this request" until the
> cache is invalidated by time.
> Logging on the client side reveals that while the state in ZkStateReader is
> updated to "active", the cached state in CloudSolrServer remains in "down".
> {quote}
> CloudSolrServer cached state:
> DocCollection(collection-1418250319268)={
> "shards":{"shard1":{
> "range":"80000000-7fffffff",
> "state":"active",
> "replicas":{"core_node1":{
> "state":"down",
> "base_url":"http://localhost:8983/solr",
> "core":"collection-1418250319268_shard1_replica1",
> "node_name":"localhost:8983_solr"}}}},
> "maxShardsPerNode":"1",
> "external":"true",
> "router":{ "name":"compositeId"},
> "replicationFactor":"1”}
> ZkStateReader state:
> DocCollection(collection-1418250319268)={
> "shards":{"shard1":{
> "range":"80000000-7fffffff",
> "state":"active",
> "replicas":{"core_node1":{
> "state":"active",
> "base_url":"http://localhost:8983/solr",
> "core":"collection-1418250319268_shard1_replica1",
> "node_name":"localhost:8983_solr",
> "leader":"true"}}}},
> "maxShardsPerNode":"1",
> "router":{ "name":"compositeId"},
> "external":"true",
> "replicationFactor":"1”}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]