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 richardg <ri...@dvdempire.com> on 2013/08/15 15:27:01 UTC
Solr 4.3 and above core swap
Since upgrading to solr 4.3 we get the following errors on our slaves when we
swap cores on our master and is still an issue on 4.4:
Solr index directory
'/usr/local/solr_aggregate/solr_aggregate/data/index.20130513152644966' is
locked. Throwing exception
SEVERE: Unable to reload core: production
org.apache.solr.common.SolrException: Index locked for write for core
production
SEVERE: Could not reload core
org.apache.solr.common.SolrException: Unable to reload core: production
On older solr versions it would create a new index.* directory and use it,
it hasn't been the case w/ 4.3+. The new core seems to replicate fine and
the new index files are in the original index.* directory so I'm not sure
what is happening.
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-3-and-above-core-swap-tp4084794.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr 4.3 and above core swap
Posted by richardg <ri...@dvdempire.com>.
<directoryFactory name="DirectoryFactory"
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
I commented out the lockType, so it should be using the default of native
according to the documentation.
There is nothing special about our file systems.
Thanks
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-3-and-above-core-swap-tp4084794p4085456.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr 4.3 and above core swap
Posted by Shawn Heisey <so...@elyograg.org>.
On 8/16/2013 10:14 AM, richardg wrote:
> Thanks for the reply, no nothing else would be writing to the index, I'm sure
> it is a solrconfig setting but not sure which.
Are you specifying the DirectoryFactory and/or lock type in your
solrconfig.xml, and if so, what are they set to? Is your index on a
network filesystem, or an unusual filesystem type?
Thanks,
Shawn
Re: Solr 4.3 and above core swap
Posted by richardg <ri...@dvdempire.com>.
Thanks for the reply, no nothing else would be writing to the index, I'm sure
it is a solrconfig setting but not sure which.
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-3-and-above-core-swap-tp4084794p4085091.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr 4.3 and above core swap
Posted by "tamanjit.bindra@yahoo.co.in" <ta...@yahoo.co.in>.
Is any other source trying to write into your index when you try to reload
it? If this was so, then I guess it would have locked up the index. Check
for a write.lock file in your index directory. You can remove that file
manually and then retry it.
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-4-3-and-above-core-swap-tp4084794p4085052.html
Sent from the Solr - User mailing list archive at Nabble.com.