noblepaul commented on a change in pull request #1666: URL: https://github.com/apache/lucene-solr/pull/1666#discussion_r453280587
########## File path: solr/core/src/java/org/apache/solr/search/CacheConfig.java ########## @@ -64,7 +67,7 @@ public CacheConfig() {} @SuppressWarnings({"rawtypes"}) public CacheConfig(Class<? extends SolrCache> clazz, Map<String,String> args, CacheRegenerator regenerator) { - this.clazz = clazz; + this.clazz = () -> clazz; Review comment: The `SolrCore` is not instantiated and available when `SolrConfig` is created. So, create it only on demand. if SolrCore is not available, we can't register for a reload ---------------------------------------------------------------- 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