[Twisted-Python] Adbapi issues
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Thu Aug 6 10:44:16 EDT 2009
On 01:56 am, dave at krondo.com wrote:
>Gerrat Rickert wrote:
>[snip]
>>2. ...since I can't get it to reconnect properly, perhaps I could
>>just
>>close the connections in the old connection pool, and create a new
>>one...
>>
>>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)
>>dbpool.close()
>>
>>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.
Jean-Paul
More information about the Twisted-Python
mailing list