Bugs item #1334786, was opened at 2005-10-22 13:30
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1334786&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: M. Dietrich (mdt)
Assigned to: Nobody/Anonymous (nobody)
Summary: infinitiv recursion in Transaction.__del__
Initial Comment:
using ThreadConnections i get a
Exception exceptions.RuntimeError: 'maximum recursion
depth exceeded' in <bound method Transaction.__del__ of
<sqlobject.dbconnection.Transaction object at
0xaedb714c>> ignored
, commenting __del__() works in the first place. can't
figure out what this __del__ is for...
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-02-06 20:44
Message:
Logged In: YES
user_id=4799
I cannot reproduce it. When Postgres is not started your
program is just reports
Traceback (most recent call last):
File "./test1.py", line 10, in ?
sqlhub.threadConnection = connection.transaction()
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1534-py2.4.egg/sqlobject/dbconnection.py",
line 354, in transaction
return Transaction(self)
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1534-py2.4.egg/sqlobject/dbconnection.py",
line 731, in __init__
self._connection = dbConnection.getConnection()
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1534-py2.4.egg/sqlobject/dbconnection.py",
line 226, in getConnection
conn = self.makeConnection()
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1534-py2.4.egg/sqlobject/postgres/pgconnection.py",
line 108, in makeConnection
raise self.module.OperationalError("%s; used connection
string %r" % (e, self.dsn))
psycopg.OperationalError: could not connect to server: @â
Is the server running locally and accepting
connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.5432"?
; used connection string 'dbname=test'
Exception exceptions.AttributeError: "PostgresConnection
instance has no attribute '_connection'" in <bound method
Transaction.__del__ of <sqlobject.dbconnection.Transaction
object at 0xb7b6ddec>> ignored
----------------------------------------------------------------------
Comment By: Didrik Pinte (dpinte)
Date: 2006-01-24 12:20
Message:
Logged In: YES
user_id=970259
Same here,
I can reproduce it. It happens when the database is not started.
Here is a test code :
Step 1 :
Shut down you postgres server
Step 2 : Run the following
-------------------------
import sqlobject
scheme = "postgres://myusername:mypassword@localhost/mydb"
connection = sqlobject.connectionForURI(scheme)
sqlobject.sqlhub.processConnection = connection
sqlhub.threadConnection = connection.transaction()
--------------------------
Didrik
----------------------------------------------------------------------
Comment By: xiao hai tong (haitong)
Date: 2005-12-04 20:35
Message:
Logged In: YES
user_id=146934
I encount it too.
once is too many connection crash my pgsql server on
windows, then may of such exceptions reported.
other time:
a multi thread test program.
I want to retry my transaction when excecption occured
during commit, I commet the threadConnection.rollback(),
just set
threadConnection = g_conn.transaction(), and redo the
transaction
after seconds, such exceptions occurred.
----------------------------------------------------------------------
Comment By: Oleg Broytmann (phd)
Date: 2005-10-25 20:12
Message:
Logged In: YES
user_id=4799
Can you make a little test program that demonstrates the
problem?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1334786&group_id=74338
|