Hi John.

>
> so the String issue occurs here:
>
>  https://github.com/tricycle/ruote-redis/blob/c7efcd8a080233aa7ba68423...
>
> What does logging say redis is returning as a String ?

Yes, that's exactly the place... surprisingly the logging seems to
catch valid results, just as a string, eg...

Queries Id's: ["expressions/0_0_0!e823b353d603379895d07bb338fec833!
20111025-majeguyu"]
Result (String):
expressions/0_0_0_0!f864fa66e92cd1e923b56f4f5ecab96a!20111025-majeguyu

Queries Id's: ["01:08:16.410770", "01:08:16.412251", "UTC\",\"_rev\":
\"1\"}", "UTC\"},\"wf_name\":\"pay_invoice\",\"wf_revision\":null,\"fei
\":{\"engine_id\":\"engine\",\"wfid\":\"20111127-bojujiboni\",\"subid
\":\"0534cec4eac18e57b27b66e935e3a241\",\"expid\":\"0_0_0_0\"},
\"participant_name\":\"ocr_validator\",\"re_dispatch_count\":0,\"type
\":\"workitems\",\"_id\":\"wi!0_0_0_0!0534cec4eac18e57b27b66e935e3a241!
20111127-bojujiboni\",\"wfid\":\"20111127-bojujiboni\",\"put_at\":
\"2011-11-29", "{\"fields\":{\"document_id\":28103,\"organization_id\":
119,\"requires_organization_picker\":false,\"__tags__\":[\"main\"],
\"data_entered\":true,\"supplier_id\":11,\"valid_gl_accounts\":true,
\"requires_supplier_creator\":false,\"requires_gl_account_creator
\":false,\"requires_ocr_validation\":true,\"params\":{\"ref\":
\"ocr_validator\",\"timeout\":\"7d\"},\"dispatched_at\":\"2011-11-29"]
Result (String):
{"fields":{"document_id":28205,"organization_id":
43,"requires_organization_picker":false,"__tags__":
["main"],"data_entered":true,"supplier_id":
111,"valid_gl_accounts":true,"requires_supplier_creator":false,"requires_gl_account_creator":false,"requires_ocr_validation":true,"params":
{"ref":"ocr_validator","timeout":"7d"},"dispatched_at":"2011-11-28
01:03:38.258097 UTC"},"wf_name":"pay_invoice","wf_revision":null,"fei":
{"engine_id":"engine","wfid":"20111128-
befujatsuno","subid":"054e6dd4ff89359f044b9e76827492a9","expid":"0_0_0_0"},"participant_name":"ocr_validator","re_dispatch_count":
0,"type":"workitems","_id":"wi!0_0_0_0!
054e6dd4ff89359f044b9e76827492a9!20111128-
befujatsuno","wfid":"20111128-befujatsuno","put_at":"2011-11-28
01:03:38.258797 UTC","_rev":"1"}

>
> I've had such an issue previously, here's how I solved it:
>
>  https://github.com/jmettraux/ruote-redis/commit/cdb5712aa05f871796289...
>

We changed our copy of the repo to make sure this doesn't return a
string anymore (thanks for the guidance)...
https://github.com/tricycle/ruote-redis/commit/44f869ec2d277a6d99d5546c43ec1a306e0a361c

The problem now is, that we don't know in case stuff goes wrong...
There must be an underlying issue somewhere (and the more I read the
ruote-redis codebase, I reckon it must be in redis-rb).

>
> Sorry, no experience with stale connection. I have to admit I don't use redis 
> in production.
>
> Maybe we could add some connection check/re-establishment code if necessary.
>
> I will dig further this get/mget issue here and come back to you. Meanwhile 
> if you have more feedback, it'd be welcome.

Did you get anywhere with your research?

>
> I wonder about the overlap between connection stale and keys/mget returning a 
> string instead of an array.

It would be an interesting correlation... but it's incredibly hard to
test, because it's an intermittent problem and I haven't come across a
scenario where it happens every time...

Cheers,
Tom

-- 
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

Reply via email to