Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7729

ConcurrentUpdateSolrClient ignoring the collection parameter in some methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 6.1, 7.0
    • Component/s: SolrJ
    • Labels:

      Description

      Some of the methods in ConcurrentUpdateSolrClient accept an aditional collection parameter, some of this methods are: add(String collection, SolrInputDocument doc) and request(SolrRequest, String collection).

      This collection parameter is being ignored in this cases but works for others like commit(String collection).

      Shawn Heisey noted that:

      Looking into how an update request actually gets added to the background
      queue in ConcurrentUpdateSolrClient, it appears that the "collection"
      information is ignored before the request is added to the queue.

      From the source, when a commit is issued or the UpdateParams.WAIT_SEARCHER is set in the request params the collection parameter is used, otherwise the request UpdateRequest req is queued without any regarding of the collection.

        Attachments

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              jorgelbg Jorge Luis Betancourt Gonzalez
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: