dsmiley commented on a change in pull request #1669:
URL: https://github.com/apache/lucene-solr/pull/1669#discussion_r454456488



##########
File path: solr/core/src/java/org/apache/solr/schema/IndexSchema.java
##########
@@ -188,6 +190,7 @@ public IndexSchema(String name, InputSource is, Version 
luceneVersion, SolrResou
   protected IndexSchema(Version luceneVersion, SolrResourceLoader loader, 
Properties substitutableProperties) {
     this.luceneVersion = Objects.requireNonNull(luceneVersion);
     this.loader = loader;
+    this.solrClassLoader = loader.getCore() == null? loader: 
loader.getCore().getSchemaPluginsLoader();

Review comment:
       With that idea, there would only need to be one SRL class (no 
subclasses), and it'd be easy to create new instances based on those two 
primary components.  
   
   I'm sure there is some tech debt entanglements in SRL relating to tracking 
instancePath (there's a TODO I added in there, initLibs() to remove that one) 
and harder are waitingForCore, infoMBeans, waitingForResources, and of course 
managedResourceRegistry.  If those get moved off somehow, then I hope the 
picture I propose becomes more clear.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to