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

Retrieve CoreContainer from EmbeddedSolrServer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 3.6, 4.0-ALPHA
    • None
    • None

    Description

      Submitting the patch suggested by Paul Noble to deal with this issue:

      Hi all,

      I notice that when I use EmbeddedSolrServer I have to use Control C to stop the process. I think the way to shut it down is by calling

      coreContainer.shutdown().

      However, is it possible to get the coreContainer from a SolrServer object? Right now it is defined as protected final CoreContainer coreContainer;.

      I wanted to do:

      ((EmbeddedSolrServer)solr)getCoreContainer.shutdown();

      But is seem I need to keep my own reference to the coreContainer?

      Is changing this worth a patch?

      Eric

      Attachments

        1. SOLR-1178.patch
          4 kB
          Luca Cavanna
        2. SOLR-1178.patch
          0.5 kB
          Luca Cavanna
        3. embedded_solr_container.patch
          2 kB
          Eric Pugh

        Activity

          People

            simonw Simon Willnauer
            epugh Eric Pugh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: