You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jessica Cheng Mallet (JIRA)" <ji...@apache.org> on 2014/12/16 20:25:13 UTC

[jira] [Created] (SOLR-6854) Stale cached state in CloudSolrServer

Jessica Cheng Mallet created SOLR-6854:
------------------------------------------

             Summary: Stale cached state in CloudSolrServer
                 Key: SOLR-6854
                 URL: https://issues.apache.org/jira/browse/SOLR-6854
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud, SolrJ
            Reporter: Jessica Cheng Mallet


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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org