We currently have this in the code base:
try: assert store._connection._state != STATE_DISCONNECTED, ( "Bug #504291: Store left in a disconnected state.")
except AssertionError:
# The Store is in a disconnected state. This should
# not happen, as store.rollback() should have been called
# by now. Log an OOPS so we know about this. This
# is Bug #504291 happening. getUtility(IErrorReportingUtility).raising( sys.exc_info(), request)
# Repair things so the server can remain operational. store.rollback()
in endRequest: the code path that leads to disconnected stores is still live. This bug is merely worked-around. I'm going to reopen it as we're trying to get a real fix in place as part of the fastdowntime work.
We currently have this in the code base:
assert store._ connection. _state != STATE_DISCONNECTED, (
"Bug #504291: Store left in a disconnected state.")
getUtility( IErrorReporting Utility) .raising(
sys. exc_info( ), request)
store. rollback( )
try:
except AssertionError:
# The Store is in a disconnected state. This should
# not happen, as store.rollback() should have been called
# by now. Log an OOPS so we know about this. This
# is Bug #504291 happening.
# Repair things so the server can remain operational.
in endRequest: the code path that leads to disconnected stores is still live. This bug is merely worked-around. I'm going to reopen it as we're trying to get a real fix in place as part of the fastdowntime work.