Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8757

Swap + unload does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.5
    • None
    • multicore
    • None

    Description

      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 dirs
      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fabrizio.fortino@gmail.com Fabrizio Fortino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: