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

ConcurrentUpdateSolrClient ignoring the collection parameter in some methods

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1
    • 6.1, 7.0
    • SolrJ

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment