You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Igor Motov (JIRA)" <ji...@apache.org> on 2009/08/31 22:47:33 UTC

[jira] Issue Comment Edited: (SOLR-1399) Lock settings are ignored

    [ https://issues.apache.org/jira/browse/SOLR-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749615#action_12749615 ] 

Igor Motov edited comment on SOLR-1399 at 8/31/09 1:46 PM:
-----------------------------------------------------------

Here is a small patch that resolves this issue.

      was (Author: imotov):
    Here is a small patch that solves this issue.
  
> Lock settings are ignored
> -------------------------
>
>                 Key: SOLR-1399
>                 URL: https://issues.apache.org/jira/browse/SOLR-1399
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Igor Motov
>             Fix For: 1.4
>
>         Attachments: SOLR-1399.patch
>
>
> To reproduce: 
> - set dataDir to point to a directory that the current user has no access right to (/solr/data,  for non-root user, for example)
> - change lockType to single
> - start example web server.
> The server fails with the following error message that indicates that it still uses SimpleFSLock
> Caused by: java.io.IOException: Cannot create directory: /solr/data/index
> 	at org.apache.lucene.store.SimpleFSLock.obtain(SimpleFSLockFactory.java:138)
> 	at org.apache.lucene.store.Lock.obtain(Lock.java:73)
> 	at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1540)
> 	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1310)
> 	at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:160)
> 	at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:388)
> I ran into this issue using custom DirectoryFactory. 

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