lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teruhiko Kurosaka <K...@basistech.com>
Subject index demo throws LockObtainFailedException
Date Fri, 29 Jan 2010 01:15:26 GMT
We have many Linux machines of different brands, sharing the same NFS filesystem
for home.  The Lucene file indexing demo program is failing with LockObainFailedException

only on one particular Linux machine (Fedora Core 4, x86).  I am including
the console output at the bottom of this message.

I tried Lucene 2.9.0, 2.9.1 and 3.0.0, and the result is identical.

After searching the Internet, I saw some postings suggesting that this happens
when the disk space is low. But there seem to be more than enough for this
small demo.  I didn't understand suggestions about lockd.  I'd appreciate
for any advices on how to find the cause of this Exception. 

Thank you in advance.

T. "Kuro" Kurosaka

-bash-3.00$ cd lucene-3.0.0/
-bash-3.00$ ant demo-index-text
Buildfile: build.xml

jar.core-check:

compile-demo:
    [mkdir] Created dir: /basis/users/kuro/opt/lucene-3.0.0/build/classes/demo
    [javac] Compiling 17 source files to /basis/users/kuro/opt/lucene-3.0.0/build/classes/demo

jar-demo:
      [jar] Building jar: /basis/users/kuro/opt/lucene-3.0.0/lucene-demos-3.0.0.jar

demo-index-text:
     [echo] ----- (1) Prepare dir -----
     [echo] cd /basis/users/kuro/opt/lucene-3.0.0
     [echo] rmdir demo-text-dir
     [echo] mkdir demo-text-dir
    [mkdir] Created dir: /basis/users/kuro/opt/lucene-3.0.0/demo-text-dir
     [echo] cd demo-text-dir
     [echo] ----- (2) Index the files located under /basis/users/kuro/opt/lucene-3.0.0/src
-----
     [echo] java -classpath "../lucene-core-3.0.0.jar;../lucene-demos-3.0.0.jar" org.apache.lucene.demo.IndexFiles
../src/demo
     [java]  caught a class org.apache.lucene.store.LockObtainFailedException
     [java]  with message: Lock obtain timed out: NativeFSLock@/basis/users/kuro/opt/lucene-3.0.0/demo-text-dir/index/write.lock:
java.io.IOException: Input/output error

BUILD SUCCESSFUL
Total time: 6 seconds
-bash-3.00$ df -k . /tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
storev:/vol/exports/users
                     3119362560 2790661520 328701040  90% /basis/users
/dev/sda2              9718360   7700764   1515968  84% /

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message