[ 
https://issues.apache.org/jira/browse/SOLR-15100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300609#comment-17300609
 ] 

David Smiley commented on SOLR-15100:
-------------------------------------

BTW, there are a number of places in SolrCloud that assume a configSet exists 
in ZooKeeper.  Ideally such places will migrate to ConfigSetService where it 
can be pluggable.  I did an IDE find-usages on ZkConfigManager and found these 
suspicious locations:
 * QueryElevationComponent
 * CreateCollectionCmd (getConfigName, copyDefaultConfigSetTo, getConfName )
 * DeleteCollectionCmd (for auto generated configSets -- deleting)
 * OverseerCollectionMessageHandler (validateConfigOrThrowSolrException)
 * RestoreCmd (for backups) – line 277)
 * BackupManager (uploadConfigDir downloadConfigDir)

It's debatable wether the ConfigSet API (see ConfigSetsHandler & 
OverseerConfigSetMessageHandler) should assume ZK or not.  I think I'd prefer 
that the ConfigSetService be a suitable abstraction to handle CRUD operations 
and thus reduce how far flung the related code is.  I'll file a new issue.

> add ConfigSetService extension ability
> --------------------------------------
>
>                 Key: SOLR-15100
>                 URL: https://issues.apache.org/jira/browse/SOLR-15100
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>    Affects Versions: 8.7
>            Reporter: bai sui
>            Assignee: David Smiley
>            Priority: Minor
>             Fix For: main (9.0)
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> I want to load schema and solrconfig configuration form DB,that need to 
> customize the SolrResourceLoader for my own。
> customized SolrResourceLoader will be create from 
> ConfigSetService.createCoreResourceLoader() method。
> so i want to modify the static method ConfigSetService.createConfigSetService 
> in that I can define the  customized class name of  ConfigSetService in 
> solr.xml and create it in the method



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to