[
https://issues.apache.org/jira/browse/SOLR-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated SOLR-18685:
--------------------------------
Description:
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).
was:
{{configSetService}} is pluggable in solr.xml, but in SolrCloud only
{{ZkConfigSetService}} actually works. It alone fills in
{{CoreDescriptor.getConfigSet()}} from the collection's {{configName}}; with
{{FileSystemConfigSetService}}, core creation fails with {{Can't find resource
'solrconfig.xml' in classpath or '<coreInstanceDir>'}}. A 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).
> 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: 10m
> 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]