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

PKG_VERSIONS not honored when loading the schema plugins

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.6
    • 9.7
    • Package Manager
    • None

    Description

      If the schema references plugin classes from the package uploaded to the package store, Solr always uses the latest version of the package when loading the schema even if the constraint is specified in params.json.

      Steps to reproduce

      1. Upload multiple versions of the same package to Solr (the versions don't have to be compatible with each other)
      2. Upload a configset which requests a specific package version via PKG_VERSIONS in params.json
      3. Create a collection using the uploaded configset

      Expected behavior

      • If the configsets references custom classes from the package, then Solr uses the package version constraint from params.json to initialize all the plugins mentioned in `solrconfig.xml` and `schema.xml`

      Actual behavior

      • Solr uses the package version specified in params.json only for loading the `solrconfig.xml` plugins
      • For `schema.xml` plugins (field types, token filters, similarities, etc.) Solr always goes for the latest available package version, regardless of what was specified in params.json

      Test that reproduces the issue: https://github.com/apache/solr/pull/2471.

      Attachments

        Issue Links

          Activity

            People

              epugh Eric Pugh
              andreybozhko Andrey Bozhko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m