Re: deletion of index-files fails

2009-03-07 Thread Michael McCandless
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

Re: deletion of index-files fails

2009-03-06 Thread rolarenfan
- >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: deletion of index-files fails

2009-03-06 Thread Erick Erickson
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

Re: deletion of index-files fails

2009-03-06 Thread 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 longer be holding open files. Maybe triple check that you've indeed closed everything.

Re: deletion of index-files fails

2009-03-06 Thread Erick Erickson
>>> 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--

Re: deletion of index-files fails

2009-03-06 Thread Michael McCandless
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

Re: deletion of index-files fails

2009-03-06 Thread Erick Erickson
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

Re: deletion of index-files fails

2009-03-06 Thread Michael McCandless
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 &

Re: deletion of index-files fails

2009-03-06 Thread rolarenfan
-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

Re: deletion of index-files fails

2009-03-06 Thread rolarenfan
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

Re: deletion of index-files fails

2009-03-06 Thread Michael McCandless
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

Re: deletion of index-files fails

2009-03-06 Thread Ian Lea
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

deletion of index-files fails

2009-03-05 Thread rolarenfan
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