You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Xiaolu Zhao <xi...@oracle.com> on 2014/10/22 17:50:59 UTC

Difference between unloading of cores with LotsOfCores and unloading a core with CoreAdmin

Hi All,

I am confused about the difference between unloading of cores with 
LotsOfCores and unloading a core with CoreAdmin.

 From my understanding of LotsOfCores, if one core is removed from 
transient cache, it is pending to close, it means close all resources 
allocated by the core if it is no longer in use, e.g. searcher, 
updateHandler... While for unloading a core with CoreAdmin, this core 
needs to be removed from the cores list, either ordinary cores list or 
transient cores list, and cores locator will delete it. If this core is 
loaded but not pending to close, it will be close.

Also, one more interesting thing is if I unload a core with CoreAdmin, 
"core.properties" will be renamed "core.properties.unloaded". Then this 
core cannot be found in the Solr API, and STATUS url won't return its 
status as well. But with LotsOfCores, a core not in the transient cache 
will still have "core.properties" and could be found through STATUS url, 
though it is marked with "isLoaded=false".

Could anyone tells me the underlying mechanism for these two cases? Why 
LotsOfCores could realize frequent unloading/loading of cores? Do cores 
not in the transient cores still consume JVM memory, while unloaded 
cores with CoreAdmin not?

Thanks,
Xiaolu