I'm still using 0.9.6 : )

Will try the Python Directory. Since I'm using FSDirectory without any
need of customerization, I guess the benefit would be having the
flexibility running Python source code v.s. black box gcj code in some
non-performance intensive logic?

Also I have track the problem down further. It gets down into Lucene
detail but I'm posting my finding hoping it maybe be useful in the
future.

In FSDirectory.java: 307

        return lockFile.createNewFile();

javadoc says File.createNewFile() returns true if the named file does
not exist and was successfully created; false if the named file
already exists. I suspect the Windows version of gcj call some win32
api that do not return false but throws the 'CreateFile failed'
exception without the offending filename. Otherwise Java Lucene would
output an helpful error message:

java.io.IOException: java.io.IOException: Lock obtain timed out:
[EMAIL PROTECTED]:\DOCUME~1\wtung\LOCALS~1\Temp\lucene-2c18dbaca5d0c304
fe57ca5cbf0f514f-write.lock

In anycase the underlying problem maybe that it is not allowed to
create two IndexWriter on the same directory.

wy
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to