← Back to team overview

openerp-expert-framework team mailing list archive

Re: Should OpenERP flush his pooler in case of fatal connexion error ?

 

This is the patch I've tested successfully on OpenERP 5.0.11.
You just need to "killall postgres" to test its behaviour :-)

Best regards,

-- 
Florent


2011/11/16 Florent <florent.xicluna@xxxxxxxxx>

> Hello Nicolas,
>
> AFAICT it's fixed in trunk
> http://git.hellug.gr/?p=xrg/openobject-server;a=commit;h=59895822466e8427fa
>
> If the question is related to v5.0, I can provide a patch.
>
> Regards,
>
> --
> Florent
>
>
> 2011/11/8 Nicolas Bessi <nicolas.bessi@xxxxxxxxxxxxxx>
>
>> Hello,
>>
>> Last Debian security update as restarted PostgreSQL. Some user have maybe
>> encounter troubles with ther instances (having cursor close error etc.).
>> In such case is it legitimate to have OpenERP to try to flush is pooler
>> and try to reinitiate connexion for a given duration.
>> If not possible should the main OpenERP process stop itself etc. I think
>> it is important to have such reflexion as ERP must be high disponnibility
>> application.
>>
>> Any reaction are welcome.
>>
>>
>> Regards
>>
>> Nicolas
>>
>>

Attachment: oerp5_discard_closed_connections.diff
Description: Binary data


References