Use a Filter API with SQLAlchemy Engine Events for Error Wrapping

Registered by Mike Bayer

The system that oslo.db provides for transformation of SQLAlchemy execution-
time errors, including DBAPI and related errors, should be reworked
to be simpler, more portable, more forwards-compatible, more extensible,
and more testable.

Blueprint information

Status:
Complete
Approver:
Doug Hellmann
Priority:
Undefined
Drafter:
Mike Bayer
Direction:
Needs approval
Assignee:
Mike Bayer
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 1.0.0
Started by
Doug Hellmann
Completed by
Doug Hellmann

Related branches

Sprints

Whiteboard

Not sure which milestone I should use here.

Gerrit topic: https://review.openstack.org/#q,topic:bp/use-events-for-error-wrapping,n,z

Addressed by: https://review.openstack.org/105306
    Add use-events-for-error-wrapping

Addressed by: https://review.openstack.org/105307
    - implement exception compatibility layer - work up a system of filters to replace imperative exception handling logic with declarative logic - fully move all exception reraises to be rules

Here's the SQLAlchemy feature: http://docs.sqlalchemy.org/en/rel_0_9/core/events.html#sqlalchemy.events.ConnectionEvents.handle_error

You should not set a milestone target unless the blueprint has been properly prioritized by the project drivers.
(This is an automated message)

Addressed by: https://review.openstack.org/105891
    Implement new exception interception and filtering layer

Addressed by: https://review.openstack.org/106432
    Add disconnect modification support to exception handling

Addressed by: https://review.openstack.org/106491
    Integrate the ping listener into the filter system.

Addressed by: https://review.openstack.org/106492
    Port _is_db_connection_error check to exception filters

Gerrit topic: https://review.openstack.org/#q,topic:bug/1214341,n,z

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.