On Tue, Feb 12, 2013 at 03:32:28PM -0800, Iuri G. wrote:
>
> I hope this message find you well.

Hello Iuri,

thanks I'm fine, I hope you're doing fine as well.

> I have been testing multiple workers that use same ruote-seque storage and
> I get some weird behaviour. I run following code that basically loops
> infinitely:
> ---------
> (...)
> --------
>
> I start 3 instances of the worker using rake command (3 x rake
> ruote:run_worker) and after couple seconds, expression tree of the process
> gets messed up. I start getting multiple participants with the same expid
> in expression tree for that process. all of them have expid 0_0_0 which i
> think is wrong. I tried disabling cache in ruote-sequel, putting
> transaction/lock statement around do_insert method in ruote-sequel but
> nothing helped.

What version of Ruby and ruote do you use? On which platform? What is the
database and it's version, if it's MySQL, are you using the msyql or the
mysql2 adapter?

> I ended up hacking run method in Ruote::Worker and putting sequel lock
> statement around it (which is not storage implementation independent, but
> helped in testing and diagnosing). after that, workers started playing
> nice, but if my participant raises an error, whole table locks up.

May I see what this lock looks like? Do you mind if I integrate it in
ruote-sequel if necessary?

> All of my approaches above are just my attempts on diagnosing what was
> going wrong, and from what I can say, multiple workers insert same message
> twice for some reason.
>
> I was wondering if you are anyone else had successfully used two or more
> workers for sequel storage? or maybe had similar problems?

Yes, anyone with the same issue?

The most likely scenario is that my locking scheme for ruote-sequel is
horribly wrong.


Cheers,

--
John Mettraux - http://lambda.io/jmettraux

-- 
-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to