lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrizio Fortino <>
Subject solr 5.5: swap + unload does not work
Date Thu, 03 Mar 2016 10:44:05 GMT
I have created a Solr CoreAdminHandler extension with the goal to swap two
cores and remove the old one.

My code looks like this:

SolrCore core = coreContainer.create("newcore", coreProps)
coreContainer.swap("newcore", "livecore")
// the old livecore is now newcore, so unload it and remove all the related
coreContainer.unload("newcore", true, true, true)

After the last statement get executed the Solr log starts printing the
following messages forever

61424 INFO (pool-1-thread-1) [ x:newcore] o.a.s.c.SolrCore Core newcore is
not yet closed, waiting 100 ms before checking again.

I tried to call the close() method on the SolrCore instance before and
after the unload but the result is the same.

I opened an issue on the problem ( but the jira has not been
acknowledged yet.

I'd like to know if my code is wrong or is a Solr bug. In case of a bug it
would be nice to have a workaround.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message