lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1178) Retrieve CoreContainer from EmbeddedSolrServer
Date Wed, 20 May 2009 17:13:45 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Pugh updated SOLR-1178:
----------------------------

    Attachment: embedded_solr_container.patch

Patch file, and I added a really stupidly simple test.  I added it to TestSolrProperties.java
just cause it didn't seem worth creating another .java file, and I don't know if we need it.

> Retrieve CoreContainer from EmbeddedSolrServer
> ----------------------------------------------
>
>                 Key: SOLR-1178
>                 URL: https://issues.apache.org/jira/browse/SOLR-1178
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Eric Pugh
>            Priority: Minor
>         Attachments: embedded_solr_container.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message