So I have the problem where lucene is leaving lock files sitting around if the JVM or program crashes. I am using the newest version of lucene 2.4.1 and I am using NativeFSLockFactory. I can run the program and kill the jvm or program abnormally and my lock files are still not getting cleaned up. I have tested this on RedHat 4 and on solaris 10 with the same results. From what I have read when using NativeFSLockFactory lucene will use locks native to the OS so that the OS will clean up the lock files if the JVM or program terminated abnormally.
Has anyone else ever run into this? Has anyone gotten this to work?
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me: