You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by nipunb <ni...@walmartlabs.com> on 2011/07/14 09:50:21 UTC

Lockfactory indicated by ../solr/admin/cores different from the setting in solrconfig.xml

hey
We have set locktype to simple in solrconfig.xml using:
<lockType>simple</lockType>. However on the page
localhost:8983/solr/admin/cores shows:
<str name="directory">
org.apache.lucene.store.MMapDirectory:org.apache.lucene.store.MMapDirectory..../solr-cores/core0/data/index
lockFactory=*org.apache.lucene.store.NativeFSLockFactory*@3415ddf5
</str>
I can see a write.lock file in the index directory. But shouldn't the page
solr/admin/cores also be showing the the lockFactory to be
org.apache.lucene.store.SimpleFSLockFactory.SimpleFSLockFactory

thanks
nipun 

--
View this message in context: http://lucene.472066.n3.nabble.com/Lockfactory-indicated-by-solr-admin-cores-different-from-the-setting-in-solrconfig-xml-tp3168427p3168427.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Lockfactory indicated by ../solr/admin/cores different from the setting in solrconfig.xml

Posted by Chris Hostetter <ho...@fucit.org>.
: We have set locktype to simple in solrconfig.xml using:
: <lockType>simple</lockType>. However on the page
: localhost:8983/solr/admin/cores shows:
: <str name="directory">
: org.apache.lucene.store.MMapDirectory:org.apache.lucene.store.MMapDirectory..../solr-cores/core0/data/index
: lockFactory=*org.apache.lucene.store.NativeFSLockFactory*@3415ddf5
: </str>
: I can see a write.lock file in the index directory. But shouldn't the page
: solr/admin/cores also be showing the the lockFactory to be
: org.apache.lucene.store.SimpleFSLockFactory.SimpleFSLockFactory

Good question.

I think what's happening here is that the CoreAdmin page (as well as the 
Stats page fo the Core) are displaying the Directory.toString() info for 
the Directory in use by the IndexReader.  Solr doesn't seem to be 
applying the <lockType/> setting to the directory used by the 
IndexReaders.

the <lockType/> setting exists for the IndexWriter (to manage the write 
lock) and i *think* the IndexReader's in use in solr are al read only, so 
i'm pretty sure this isn't a majorly serious bug -- but it definitely 
smells like a bug one way or another...

https://issues.apache.org/jira/browse/SOLR-2654

-Hoss