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

Container plugins need a way to be configured

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • Plugin system
    • None

    Description

      Container plugins are defined in /clusterprops.json:/plugin using a simple PluginMeta bean. This is sufficient for implementations that don't need any configuration except for the pathPrefix but insufficient for anything else that needs more configuration parameters.

      An example would be a CollectionsRepairEventListener plugin proposed in PR-1962, which needs parameters such as the list of collections, waitFor, maximum operations allowed, etc. to properly function.

      This issue proposes to extend the PluginMeta bean to allow a Map<String, Object> configuration parameters.

      There is an interface that we could potentially use (MapInitializedPlugin but it works only with String values. This is not optimal because it requires additional type-safety validation from the consumers. The existing PluginInfo / PluginInfoInitialized interface is too complex for this purpose.

      Attachments

        1. SOLR-14977.patch
          14 kB
          Noble Paul

        Activity

          People

            ab Andrzej Bialecki
            ab Andrzej Bialecki
            Votes:
            0 Vote for this issue
            Watchers:
            6 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 - 5h 20m
                5h 20m