Lost ipdevpoll database connections aren't properly reset under Django 1.7
Bug #1590654 reported by
Morten Brekkevold
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
High
|
Morten Brekkevold |
Bug Description
A slew of OS upgrades have made it obvious that ipdevpoll under NAV 4.4 isn't resetting lost database connections like it used to. It just keeps logging InterfaceErrors into infinity.
Upon inspection, it seems the problem is becase Django 1.7 is wrapping the database exceptions raised by the psycogp2 driver, so the reset handler is now catching the wrong exceptions.
It should be made to catch InterfaceErrors and OperationalErrors from both psycopg2 and Django.
Changed in nav: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
fix here: https:/ /nav.uninett. no/hg/default/ rev/ea688c9989d 1