lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Motov (JIRA)" <>
Subject [jira] Commented: (SOLR-1399) Lock settings are ignored
Date Tue, 01 Sep 2009 12:28:32 GMT


Igor Motov commented on SOLR-1399:

Yes, your patch solves the issue and definitely looks like a better fix. Thanks! 

However, don't you think it makes sense to fix that deprecated method as well? Not passing
the config parameter in SolrIndexWriter(String name, String path, DirectoryFactory dirFactory,
boolean create, IndexSchema schema, SolrIndexConfig config) looks like a typo, and since the
method is not marked as @deprecated, somebody might use it. 

> Lock settings are ignored
> -------------------------
>                 Key: SOLR-1399
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Igor Motov
>             Fix For: 1.4
>         Attachments: SOLR-1399.patch, 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: Cannot create directory: /solr/data/index
> 	at
> 	at
> 	at org.apache.lucene.index.IndexWriter.init(
> 	at org.apache.lucene.index.IndexWriter.<init>(
> 	at org.apache.solr.update.SolrIndexWriter.<init>(
> 	at org.apache.solr.core.SolrCore.initIndex(
> 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.

View raw message