[
https://issues.apache.org/jira/browse/LUCENE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559780#action_12559780
]
Grant Ingersoll commented on LUCENE-1050:
-----------------------------------------
I'm getting an exception here, when using in Solr to create the Spell checking
index.
It seems the SpellChecker is telling the IndexReader to delete the lockFile,
but the lockFile doesn't exist.
SEVERE: org.apache.lucene.store.LockReleaseFailedException: failed to delete
<path to>/solr/data/spell/write.lock
at
org.apache.lucene.store.SimpleFSLock.release(SimpleFSLockFactory.java:149)
at org.apache.lucene.index.IndexReader.unlock(IndexReader.java:882)
at
org.apache.lucene.search.spell.SpellChecker.clearIndex(SpellChecker.java:287)
at
org.apache.solr.handler.SpellCheckerRequestHandler.rebuild(SpellCheckerRequestHandler.java:390)
at
org.apache.solr.handler.SpellCheckerRequestHandler.handleRequestBody(SpellCheckerRequestHandler.java:272)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:117)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:902)
I don't know much about the locking mechanism, but it seems like this should
check to see if the lockFile exists before trying to delete it.
I am running this on OS X.
> SimpleFSLockFactory ignores error on deleting the lock file
> -----------------------------------------------------------
>
> Key: LUCENE-1050
> URL: https://issues.apache.org/jira/browse/LUCENE-1050
> Project: Lucene - Java
> Issue Type: Bug
> Components: Store
> Affects Versions: 2.2
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 2.3
>
> Attachments: LUCENE-1050.patch
>
>
> Spinoff from here:
> http://www.gossamer-threads.com/lists/lucene/java-user/54438
> The Lock.release for SimpleFSLockFactory ignores the return value of
> lockFile.delete(). I plan to throw a new LockReleaseFailedException,
> subclassing from IOException, when this returns false. This is a very minor
> change to backwards compatibility because all methods in Lucene that release
> a lock already throw IOException.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]