You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Andrzej Bialecki (Jira)" <ji...@apache.org> on 2020/11/02 12:26:00 UTC
[jira] [Created] (SOLR-14977) Container plugins need a way to be
configured
Andrzej Bialecki created SOLR-14977:
---------------------------------------
Summary: Container plugins need a way to be configured
Key: SOLR-14977
URL: https://issues.apache.org/jira/browse/SOLR-14977
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Components: Plugin system
Reporter: Andrzej Bialecki
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org