Where is the common index? On NFS?

If it is on a native hard disk (on the same computer) Solr uses the
file locking mechanism supplied by the operating system (Linux or
Windows). This may not be working right. See this for more info on
file locking:
http://wiki.apache.org/lucene-java/AvailableLockFactories

On Mon, Aug 6, 2012 at 10:56 AM, Bing Hua <bh...@cornell.edu> wrote:
> Hi,
>
> I'm trying to use two embedded solr servers pointing to a same solrhome /
> index. So that's something like
>
>         System.setProperty("solr.solr.home", "SomeSolrDir");
>         CoreContainer.Initializer initializer = new
> CoreContainer.Initializer();
>         CoreContainer coreContainer = initializer.initialize();
>         m_server = new EmbeddedSolrServer(coreContainer, "");
>
> on both applications. The problem is, after I have done one add+commit
> SolrInputDocument on one embedded server, the other server would fail to
> obtain write lock any more. I'm thinking there must be a way of releasing
> write lock so other servers may pick up. Is there an API that does so?
>
> Any inputs are appreciated.
> Bing



-- 
Lance Norskog
goks...@gmail.com

Reply via email to