pgbouncer error in test suite, psycopg went psycotic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Fix Released
|
Medium
|
Gavin Panella | ||
psycopg |
New
|
Undecided
|
Unassigned |
Bug Description
I'm getting this error in the storm test suite in oneiric, using python 2.6:
=======
ERROR: test_pgbouncer_
-------
Traceback (most recent call last):
File "/home/
result = test_method()
File "/home/
"SELECT current_
File "/usr/lib/
callableObj
File "/home/
return Connection.
File "/home/
raw_cursor = self.raw_
File "/home/
return Connection.
File "/home/
self.
File "/home/
return function(*args, **kwargs)
Error: psycopg went psycotic without error set
Related branches
- Thomas Herve (community): Approve
-
Diff: 163 lines (+39/-29)6 files modifiedtests/__init__.py (+10/-0)
tests/databases/postgres.py (+9/-1)
tests/helper.py (+17/-18)
tests/info.py (+1/-1)
tests/twisted/__init__.py (+0/-8)
tests/twisted/transact.py (+2/-1)
Changed in storm: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Gavin Panella (allenap) |
description: | updated |
Changed in storm: | |
status: | Triaged → Fix Committed |
milestone: | none → 0.20 |
Changed in storm: | |
status: | Fix Committed → Fix Released |
On Oneric I can reproduce this with psycopg2 2.4.1 and 2.4.2. Versions
2.0.14 and 2.2.2 are okay.
I tracked down the problem once before using a debug build of psycopg2
2.4.2 [1]. The problem lies in pg_raise in psycopg/pqpath.c:
if (pgres) { ssage(pgres) ;
err = PQresultErrorMe
PQresultErrorMe ssage() is returning an empty string. This appears to
be a problem in psycopg2 then. I will forward this upstream. In the
meantime I will add a skip to that test when psygopg2 is >= 2.4 and <=
2.4.2.
[1] https:/ /code.launchpad .net/~allenap/ storm/django- disconnection- errors/ +merge/ 80717