Ferret, acts_as_ferret et multi thread

Ferret::FileNotFoundError (File Not Found Error occured at
<except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input tried to open
“…/index/production/object/_74s_q.del” but it doesn’t exist

Hello,
My mongrel cluster contain a pool of 8 mongrels server.
They all works on a unique ferret index.

But sometime, I got some Ferret::FileNotFoundError exception…

I guess this is because ferret does not support multi thread or someting
like this.

So i ask : what is the official solution to make multiple rails mongrel
share a same index ???

Best regards
hakita

Could it be enough to use "index.synchronize do … end " in my
activerecord model ?

Or does I have to create a DRB server ?

Ok, i now use DRB and it works fine

I use “:remote => true” in my model.

Is it enought to ensure it use DRB ?

JENS, pls help

Regards

Jens,

Could you pls give me a clue about how to resole this issue ?

Ferret::FileNotFoundError (File Not Found Error occured at
<except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input tried to open
“…/index/production/object/_74s_q.del” but it doesn’t exist

I already tryed to delete and rebuild the index… without result

I just can not find any information on this error on this forum or
google…

Best regards

Dammned , DRB is up and appear to be running.

( installed using procedure
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer )

but i still got some errors like this one :

Ferret::FileNotFoundError (File Not Found Error occured at
<except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
tried to open “blabla/…/index/production/blabla/_5uo_3.del” but
it doesn’t exist: <Aucun fichier ou répertoire de ce type>

Is it still using local index ?

Jens, please help !!!
I don t know what to do whith this error that happen on 1/50 insert in
the index…

The solution whas to remove 'ENV[‘FERRET_USE_LOCAL_INDEX’] = “1” ’ from
my model!!!
Thank you Jens !