which is
how I found the problem). So, getRefCount() would be good!
thanks,
Paul
-Original Message-
From: Erick Erickson
Sent: Mar 6, 2009 9:01 PM
To: java-user@lucene.apache.org
Subject: Re: deletion of index-files fails
OK, I understand now. Like I said, anything you deem approp
-
>From: Erick Erickson
>Sent: Mar 6, 2009 9:01 PM
>To: java-user@lucene.apache.org
>Subject: Re: deletion of index-files fails
>
>OK, I understand now. Like I said, anything you deem appropriate.
>
>Best
>Erick
>
>On Fri, Mar 6, 2009 at 5:45 PM, Michael McCand
re and/or raise a JIRA...
>>>>
>>>> Best
>>>> Erick
>>>>
>>>> On Fri, Mar 6, 2009 at 11:40 AM, Michael McCandless <
>>>> luc...@mikemccandless.com> wrote:
>>>>
>>>>
>>>> OK, phew! Tha
Sent: Mar 6, 2009 4:23 AM
To: java-user@lucene.apache.org
Cc: rolaren...@earthlink.net
Subject: Re: deletion of index-files fails
If truly the IndexWriter & all IndexReaders are closed, then they
should no longer be holding open files. Maybe triple check that
you've indeed closed everything.
>>> once
>>>> I removed that, the call to IndexReader.close() actually worked and then
>>>> the
>>>> deletion did so too. Thanks; sorry to trouble you.
>>>>
>>>> -Paul
>>>>
>>>> -Original Message--
so too. Thanks; sorry to trouble you.
-Paul
-Original Message-
From: Michael McCandless
Sent: Mar 6, 2009 4:23 AM
To: java-user@lucene.apache.org
Cc: rolaren...@earthlink.net
Subject: Re: deletion of index-files fails
If truly the IndexWriter & all IndexReaders are closed, then they
shou
ef() ... once
>> I removed that, the call to IndexReader.close() actually worked and then the
>> deletion did so too. Thanks; sorry to trouble you.
>>
>> -Paul
>>
>> -Original Message-
>>
>>> From: Michael McCandless
>>&g
worked
and then the deletion did so too. Thanks; sorry to trouble you.
-Paul
-Original Message-
From: Michael McCandless
Sent: Mar 6, 2009 4:23 AM
To: java-user@lucene.apache.org
Cc: rolaren...@earthlink.net
Subject: Re: deletion of index-files fails
If truly the IndexWriter &
-Original Message-
>From: Michael McCandless
>Sent: Mar 6, 2009 4:23 AM
>To: java-user@lucene.apache.org
>Cc: rolaren...@earthlink.net
>Subject: Re: deletion of index-files fails
>
>
>If truly the IndexWriter & all IndexReaders are closed, then they
>should no longe
rom: Ian Lea
>Sent: Mar 6, 2009 4:07 AM
>To: java-user@lucene.apache.org, rolaren...@earthlink.net
>Subject: Re: deletion of index-files fails
>
>What OS are you running? What version of lucene? Are you sure that
>you have privilege to delete the files that it is failing on? That
If truly the IndexWriter & all IndexReaders are closed, then they
should no longer be holding open files. Maybe triple check that
you've indeed closed everything.
It's remotely possible that some other process (virus checker, source
control clients, etc) has the file open.
You could tr
What OS are you running? What version of lucene? Are you sure that
you have privilege to delete the files that it is failing on? That
they are part of the index you are trying to remove? That something
else doesn't have the files open?
It seems likely that you are on Windows and that something
So, I have a (small) Lucene index, all fine; I use it a bit, and then (on app
shutdown) want to delete its files and the containing directory (the index is
intended as a temp object). At some earlier time this was working just fine,
using java.io.File.delete(). Now however, some of the files get
13 matches
Mail list logo