[Twisted-Python] Adbapi issues

Gerrat Rickert grickert at coldstorage.com
Thu Aug 6 11:37:03 EDT 2009

>-----Original Message-----
>From: twisted-python-bounces at twistedmatrix.com [mailto:twisted-python-
>bounces at twistedmatrix.com] On Behalf Of exarkun at twistedmatrix.com
>Sent: Thursday, August 06, 2009 10:44 AM
>To: Twisted general discussion
>Subject: Re: [Twisted-Python] Adbapi issues
>On 01:56 am, dave at krondo.com wrote:
>>Gerrat Rickert wrote:
>>>2.  ...since I can't get it to reconnect properly, perhaps I could
>>>close the connections in the old connection pool, and create a new
>>>dbpool = adbapi.ConnectionPool('cx_Oracle', conn_str,
>>>                cp_noisy=True, cp_min=1, cp_reconnect=True, cp_max=3,
>>>cp_good_sql='select * from dual', threaded=True)
>>>Traceback (most recent call last):
>>>   File "<stdin>", line 1, in <module>
>>>   File "c:\python25\lib\site-packages\twisted\enterprise\adbapi.py",
>>>line 359, i
>>>n close
>>>     if self.shutdownID:
>>>AttributeError: ConnectionPool instance has no attribute 'shutdownID'
>>>...shouldn't shutdownID be initialized in the class, or at least in
>>>__init__ ?
>>Yes, probably so. Feel submit a ticket, including a patch if you want.
>This looks a lot like a bug that's fixed in trunk already.  I
>suggest trying this out with a recent checkout of trunk to see
>if it goes away before spending much time trying to track it down.

Well, before filing this as a bug, I found Ticket #2680, which I think
is the same issue.  Nothing's been fixed in the trunk though (...as of
30 seconds ago anyway).  ...and judging from all the discussion on that
ticket, maybe resolving this isn't as trivial as I would have expected.


More information about the Twisted-Python mailing list