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

Streaming expressions should support collection alias

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 6.4
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      Streaming expressions should support collection aliases.

      When I tried to access collection alias I get a null pointer exception.

      issue seems to be related to following code: clusterState.getActiveSlices returns null

      Collection<Slice> slices = clusterState.getActiveSlices(this.collection);
      

      fix seems to fairly simple , clusterState.getActiveSlices can be made aware of collection alias. I am not sure what will happen when we have large alias which has hundred of slices.

        Attachments

        1. SOLR-9077.patch
          14 kB
          Kevin Risden
        2. SOLR-9077.patch
          141 kB
          Kevin Risden
        3. SOLR-9077.patch
          142 kB
          Kevin Risden
        4. SOLR-9077.patch
          142 kB
          Kevin Risden
        5. SOLR-9077.patch
          146 kB
          Kevin Risden

          Activity

            People

            • Assignee:
              risdenk Kevin Risden
              Reporter:
              suds.s Suds
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: