> Which came first--the out of file handles error or the corruption?  I
> haven't looked, but I would guess that if you ran into the file handles
> exception while writing, that might leave Lucene in a bad state.  Lucene
> isn't transactional and doesn't really have the ACID properties of a
> database...

A little bit offtopic...

I have implemented JDSDirectory that stores Lucene indices in JDataStore
database from Borland. JDataStore implements FS-like storage, where SQL
tables are just "files" of type "table". They do have transaction
management, but I do not know if it covers any file type or only tables, I
haven't make any testing yet.

If you want, I can send this implementation to you. This might solve your
problem, because there's no file handles involved, if TxManager spans the
whole database, you get ACID properties there. The drawbacks are that
JDataStore is not for free (there's very funny licensing involved, sometimes
$100 USD, sometimes $1,000 or more) and I haven't tested it with big
databases (but Borland claims to support couple of terabytes :)). Speed was
similar to FSDirectory in my tests (difference of ~5-10% max.).

I was thinking of posting it to Lucene contributions, but recently got
completely different task and have no time to check if the code is clean
enough to make it public.

Best regards,
Roman Rokytskyy


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to