lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pauli Østerø (JIRA) <j...@apache.org>
Subject [jira] Commented: (LUCENENET-113) adding documents to index does, in rare cases, cause an access denied to segments.gen
Date Fri, 18 Apr 2008 20:00:22 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590595#action_12590595
] 

Pauli Østerø commented on LUCENENET-113:
----------------------------------------

digy> im not questioning the addDocument routine of the IndexWriter, and as it states in
the title, this seems to be a rare bug, which maybe isnt a bug at all if it turns out windows
is holding the file. Either way, my oppinion is that it should be handled by the Lucene code
- through some error/timeout handling since an UnauthorizedAccessException thrown by .Net
(Asp.net in my case), doesnt tell me as a developer what migth be the problem.

> adding documents to index does, in rare cases, cause an access denied to segments.gen
> -------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-113
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-113
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: Windows 2003
> Lucene.Net 2.1.0.3
>            Reporter: Pauli Østerø
>            Priority: Critical
>
> When updating an index via an indexwriter, does cause an access denied for segments.gen.
> After investigation with FileMon the problem seems to be Lucene deleting and creating
the segments.gen with such a speed, that Windows occasionally reports "DELETE PEND" when trying
to open the file, which causes Lucene to crash.
> A quick fix has been to do a try-catch when adding documents, and sleeping the thread
for 100 ms when encountering the UnathorizedException and trying to add the document again.

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


Mime
View raw message