Solr
  1. Solr
  2. SOLR-4332

Adding documents to SolrCloud collection broken when a node doesn't have a core for the collection

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      In SOLR-4321, it's documented that creating a collection via API results in some nodes having more than one core, while other nodes have zero cores.

      Not sure if this is desired behavior, but when a node doesn't know about a core, it throws a 404 on select/update.

      Reproduction:
      -Create a 2 node SolrCloud cluster
      -Create a new collection with numShards=1. 50% of your cluster will have a core for that collection.
      -Do an update or select against the node that doesn't have the core. 404

      Like I said, not sure if this is desired behavior, but I would expect a cluster of nodes to be able to forward requests appropriately to nodes that have a core for the collection.

        Issue Links

          Activity

          Hide
          Jan Høydahl added a comment -

          If we want the simplicity of being able to push content to ANY node in the cluster, and expect it to be forwarded to the correct master (the way I've understood the intention), then this is a "bug".

          Customers using a ZK aware client should be fine as it is "intelligent", but others need to keep track of this themselves.

          +1 to finding a solution to this

          Show
          Jan Høydahl added a comment - If we want the simplicity of being able to push content to ANY node in the cluster, and expect it to be forwarded to the correct master (the way I've understood the intention), then this is a "bug". Customers using a ZK aware client should be fine as it is "intelligent", but others need to keep track of this themselves. +1 to finding a solution to this
          Hide
          Mark Miller added a comment -

          It's not necessarily desired behavior, but it is known behavior. We have talked about having a core act as a scatter-gather core in this case - and I've even played around along those lines once. Never finished it though - one tricky issue to deal with is if there are no cores...so should we just create a tmp core to do the search?

          It's basically in the future improvement bucket. Patches welcome though.

          Show
          Mark Miller added a comment - It's not necessarily desired behavior, but it is known behavior. We have talked about having a core act as a scatter-gather core in this case - and I've even played around along those lines once. Never finished it though - one tricky issue to deal with is if there are no cores...so should we just create a tmp core to do the search? It's basically in the future improvement bucket. Patches welcome though.

            People

            • Assignee:
              Mark Miller
              Reporter:
              Eric Falcao
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development