Re: [jira] Commented: (LUCENE-710) Implement

2007-01-24 Thread Robert Engels
Curious, I guess I don't understand the BSD disclaimer. The application should not need to track any of this. The OS should be tracking open FD and locks for the process, and when it closes a FD on behalf of a process it should also remove the locks. -Original Message- >From: "Marvin Hu

Re: [jira] Commented: (LUCENE-710) Implement

2007-01-24 Thread Robert Engels
I checked, and I don't see that disclaimer in the latest POSIX documentation. -Original Message- >From: Robert Engels <[EMAIL PROTECTED]> >Sent: Jan 24, 2007 9:04 AM >To: java-dev@lucene.apache.org >Subject: Re: [jira] Commented: (LUCENE-710) Implement > >Curious, I guess I don't understan

Re: [jira] Commented: (LUCENE-710) Implement

2007-01-24 Thread Marvin Humphrey
On Jan 24, 2007, at 8:04 AM, Robert Engels wrote: Curious, I guess I don't understand the BSD disclaimer. The application should not need to track any of this. The OS should be tracking open FD and locks for the process, and when it closes a FD on behalf of a process it should also remove

Re: [jira] Commented: (LUCENE-710) Implement

2007-01-24 Thread Robert Engels
Where do you see that the some JVMs map to fcntl, from what I can see they map to flock? -Original Message- >From: Marvin Humphrey <[EMAIL PROTECTED]> >Sent: Jan 24, 2007 10:11 AM >To: java-dev@lucene.apache.org >Subject: Re: [jira] Commented: (LUCENE-710) Implement > > >On Jan 24, 2007,

Re: [jira] Commented: (LUCENE-710) Implement

2007-01-24 Thread Robert Engels
Actually, in the FileLock API it states On some systems, closing a channel releases all locks held by the Java * virtual machine on the underlying file regardless of whether the locks were * acquired via that channel or via another channel open on the same file. It * is strongly recommended t

Fwd: [NFS] Lucene, delete-on-last-close, and flock emulation

2007-01-24 Thread Marvin Humphrey
I took the NFS issue up on the Linux NFS list. Here's the first suggestion: hard links. Thoughts? Marvin Humphrey Rectangular Research http://www.rectangular.com/ Begin forwarded message: From: Trond Myklebust Date: January 24, 2007 7:06:58 PM PST To: Marvin Humphrey <[EMAIL PROTECTED]> C

Re: Fwd: [NFS] Lucene, delete-on-last-close, and flock emulation

2007-01-24 Thread Doron Cohen
> > You could easily fix this by having the reader create a hard link > > to the > > index file. e.g. > > > > ln foo foo-client.my.org-$$ > > open("foo-client.my.org-$$"); > > > > read() > > ... > > close() > > rm foo-client.my.org-$$ What happens when a client exits prematurely (without remo