You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2015/05/31 15:02:17 UTC

[jira] [Comment Edited] (LUCENE-6508) Simplify Directory/lock api

    [ https://issues.apache.org/jira/browse/LUCENE-6508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566544#comment-14566544 ] 

Uwe Schindler edited comment on LUCENE-6508 at 5/31/15 1:01 PM:
----------------------------------------------------------------

I started fixing HdfsLockFactory and Solr:
- I just need to fix tests for Hdfs, the impl is already there - will commit once I am ready
- HDFS ensureValid() is not yet implemented, but I will more or less copyPaste from SimpleFS.
- I had to remove the enforcing unlocker in Solr. I also removed the setting from SolrConfig. With NativeFSLockFactory it cannot happen anymore. Those using SimpleFS or HdFS need to manually unlock by deleting the file. I added a message about that to the SolrException on core startup.


was (Author: thetaphi):
I started fixing HdfsLockFactory and Solr:
- I just need to fix tests for Hdfs, the impl is already there - will commit once I am ready
- HDFS ensureValid() is not yet implemented, but I will more or less copyPaste from SimpleFS.
- I had to remove the enforcing unlocker in Solr. I also removed the setting from SolrConfig. With NativeFSLockFactory it cannot happen 
anymore. Those using SimpleFS or HdFS need to manually unlock by deleting the file. I added a messageb about that.

> Simplify Directory/lock api
> ---------------------------
>
>                 Key: LUCENE-6508
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6508
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Uwe Schindler
>         Attachments: LUCENE-6508-deadcode1.patch, LUCENE-6508.patch, LUCENE-6508.patch
>
>
> See LUCENE-6507 for some background. In general it would be great if you can just acquire an immutable lock (or you get a failure) and then you close that to release it.
> Today the API might be too much for what is needed by IW.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org