lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: 2 exceptions
Date Fri, 08 Mar 2002 20:29:05 GMT
Just for the list/knowledge archive:

I found the source of one of the exceptions in my code:

> java.io.IOException: Interrupted system call
> 	at java.io.RandomAccessFile.seek(Native Method)
> 	at
>
org.apache.lucene.store.FSInputStream.readInternal(FSDirectory.java:271)
> 	at 
>     // if the index has been modified since opened, re-open it.
>     if (IndexReader.lastModified(_paIndexDir) >= _paIndexLastMod)
>     {
> 	_paIndexLastMod  = new Date().getTime();
> 	if (_paIndexSearcher != null)
> 	    _paIndexSearcher.close();
> 	_paIndexLastMod  = new Date().getTime();
>     }
>     if (_paIndexSearcher == null)
> 	_paIndexSearcher = new IndexSearcher(_paIndexDir);
BUG:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      And what if it's != null?  It's already close()d above.

The other one might have been a side-effect of the above bug.

Otis


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message