Erik Hatcher writes: > > On Jan 18, 2005, at 8:09 PM, Chris Hostetter wrote: > > > : > ...which prompts me to wonder, how do people do this (ie: configure > > : > lockDir such that processes on seperate physical computers respect > > : > eachothers locks) without using NFS? > > > My question is: Given the assertion that it's not safe to keep lock > > files on an NFS partition, what mechanism do/would/should people use to > > enable two applications running on seperate physical machines to use > > the > > same lock file directory? > > I don't have experience with NFS, but the issue has cropped up numerous > times on this e-mail list, and the general advice is "don't use Lucene > on NFS drives, period", and that is why we provided that same advice in > LIA. However, I'm admittedly unknowledgeable in the reason the problem > exists. > IIRC there are suggestions to fix that using lock mechanisms from java 1.4 (or so; I guess it's something from nio). This was placed back because lucene doesn't require java 1.4 yet. There are also older (2002?) suggestions to work around using jni and symlinks for creating lock files (on unix). Alternatively you could put the lock into a relational database, if your project already uses one.
Sorry Chris, no references but you might search the archives of this list. HTH Morus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]