Mailin daemon leaves orphan database connections when there is an error

Bug #761778 reported by Chris Rossi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Chris Rossi

Bug Description

In the staging environment on gocept it has been observed that if the mailin daemon encounters an error that raises an exception, it does not properly clean up the database connection to the *karl* database (not necessarily the postoffice database, although in this case the error was that it couldn't connect to the postoffice database so its possible that connection could get left behind too, if it were created). This was observable as a growing number of postgresql worker processes on the database server. More than likely the path for exception handling in daemons needs to be examined with an eye on making sure database connections are cleaned up even when exceptions are raised.

Tags: r3.56
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 761778] [NEW] Mailin daemon leaves orphan database connections when there is an error

Any chance at all that this could be related to memory problems in production?

--Paul

On Apr 15, 2011, at 9:47 AM, Chris Rossi wrote:

> Public bug reported:
>
> In the staging environment on gocept it has been observed that if the
> mailin daemon encounters an error that raises an exception, it does not
> properly clean up the database connection to the *karl* database (not
> necessarily the postoffice database, although in this case the error was
> that it couldn't connect to the postoffice database so its possible that
> connection could get left behind too, if it were created). This was
> observable as a growing number of postgresql worker processes on the
> database server. More than likely the path for exception handling in
> daemons needs to be examined with an eye on making sure database
> connections are cleaned up even when exceptions are raised.
>
> ** Affects: karl3
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/761778
>
> Title:
> Mailin daemon leaves orphan database connections when there is an
> error
>
> Status in KARL3:
> New
>
> Bug description:
> In the staging environment on gocept it has been observed that if the
> mailin daemon encounters an error that raises an exception, it does
> not properly clean up the database connection to the *karl* database
> (not necessarily the postoffice database, although in this case the
> error was that it couldn't connect to the postoffice database so its
> possible that connection could get left behind too, if it were
> created). This was observable as a growing number of postgresql
> worker processes on the database server. More than likely the path
> for exception handling in daemons needs to be examined with an eye on
> making sure database connections are cleaned up even when exceptions
> are raised.

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

On Fri, Apr 15, 2011 at 10:06 AM, Paul Everitt <email address hidden> wrote:

> Any chance at all that this could be related to memory problems in
> production?
>

Not really.

Changed in karl3:
assignee: nobody → Chris Rossi (chris-archimedeanco)
importance: Undecided → Medium
milestone: none → m54
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Actually I can move this out of the way, as it is RelStorage related. I'll put this in the "should be done in May" milestone.

Changed in karl3:
milestone: m54 → m53
milestone: m53 → m55
Changed in karl3:
milestone: m55 → m53
status: New → Confirmed
Changed in karl3:
status: Confirmed → Fix Committed
Changed in karl3:
status: Fix Committed → Fix Released
JimPGlenn (jpglenn09)
tags: added: r3.56
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.