[ https://issues.apache.org/jira/browse/SOLR-2654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065608#comment-13065608 ]
Hoss Man commented on SOLR-2654: -------------------------------- Original report... {noformat} From: nipunb To: solr-user Date: Thu, 14 Jul 2011 00:50:21 -0700 (PDT) Subject: 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 {noformat} > <lockType/> not used consistently in all places Directory objects are > instantiated > ---------------------------------------------------------------------------------- > > Key: SOLR-2654 > URL: https://issues.apache.org/jira/browse/SOLR-2654 > Project: Solr > Issue Type: Bug > Reporter: Hoss Man > Priority: Critical > Fix For: 3.4 > > > nipunb noted on the mailing list then when configuring solr to use an > alternate <lockType/> (ie: simple) the stats for the SolrIndexSearcher list > NativeFSLockFactory being used by the Directory. > The problem seems to be that SolrIndexConfig is not consulted when > constructing Directory objects used for IndexReader (it's only used by > SolrIndexWriter) > I don't _think_ this is a problem in most cases since the IndexReaders should > all be readOnly in the core solr code) but plugins could attempt to use them > in other ways. In general it seems like a really bad bug waiting to happen. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org