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

ASF subversion and git services commented on SOLR-18685:
--------------------------------------------------------

Commit cc6eeec4a22361e0e36282027ed9da1b83e1a7c9 in solr's branch 
refs/heads/main from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=cc6eeec4a22 ]

SOLR-18685: SolrCloud: support FileSystemConfigSetService (#5384)

SolrCloud now supports FileSystemConfigSetService (configSetService in 
solr.xml), loading the ConfigSet named by the collection's configName from the 
local file system.  The Admin UI's "Files" view works with it too. Setting 
solr.configset.default.confdir to blank disables bootstrapping the _default 
ConfigSet.

Co-authored-by: Claude Opus 5.5 <[email protected]>

> SolrCloud: support FileSystemConfigSetService
> ---------------------------------------------
>
>                 Key: SOLR-18685
>                 URL: https://issues.apache.org/jira/browse/SOLR-18685
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> In SolrCloud, {{FileSystemConfigSetService}} (configured as 
> {{configSetService}} in solr.xml) didn't work.  
> {{CoreDescriptor.getConfigSet()}} is null for cloud cores, so it fell back to 
> the core's instanceDir and core creation failed with {{Can't find resource 
> 'solrconfig.xml' in classpath or '<coreInstanceDir>'}}.  Only 
> {{ZkConfigSetService}} filled it in itself.  Use case: ConfigSets shipped in 
> an immutable Docker image instead of ZooKeeper.
> Proposal:
> * {{ConfigSetService.loadConfigSet}} (used for all core loads/reloads) 
> resolves a cloud core's configSet name from cluster state when absent.  Not 
> persisted to core.properties, so reload re-resolves it (honoring 
> MODIFYCOLLECTION collection.configName).  An explicitly set name 
> (SyntheticSolrCore) is respected.  Bonus: shared-schema caching then applies 
> to non-ZK ConfigSets in SolrCloud.
> * Only {{ZkConfigSetService}} bootstraps the {{_default}} ConfigSet at 
> startup; other implementations may opt in.
> * {{ShowFileRequestHandler}} (/admin/file, Admin UI "Files") no longer casts 
> to {{ZkSolrResourceLoader}} based on {{isZooKeeperAware()}}, which threw a 
> ClassCastException.
> Out of scope: with a file-system ConfigSet in SolrCloud, ConfigSets API 
> mutations only affect the receiving node's disk, so nodes can silently 
> diverge.
> PR: https://github.com/apache/solr/pull/5384
> 🤖 This issue was drafted with AI assistance (Claude Code).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to