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

CloudSolrClient using unsplit collection list when expanding aliases

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4, 6.5.1, 6.6
    • Fix Version/s: 7.0
    • Component/s: SolrJ
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None
    • Flags:
      Patch

      Description

      Some recent refactoring seems to have introduced a bug in SolrJ's CloudSolrClient, when it's expanding a collection list and resolving aliases, it's using the wrong local variable for the alias lookup. This leads to an exception because the value is not an alias.

      E.g. suppose you made a request with &collection=x,y where either or both of x and y are not real collection names but valid aliases. This will fail, incorrectly, because the lookup is using x,y as a potential alias name lookup.

      Patch to fix this attached, which was tested locally and fixed the issue.

        Attachments

        1. SOLR-10826.patch
          4 kB
          Tim Owen
        2. SOLR-10826.patch
          2 kB
          Tim Owen
        3. SOLR-10826.patch
          0.8 kB
          Tim Owen

          Activity

            People

            • Assignee:
              varunthacker Varun Thacker
              Reporter:
              TimOwen Tim Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: