Error while deleting failed replication backup hides root cause

Bug #1386901 reported by Peter Stachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Peter Stachowski

Bug Description

If there is a problem with getting the replication snapshot, the backup is deleted. If the delete fails (for example, the backup is in the wrong state) then the original exception is lost (and more importantly, not logged).

Changed in trove:
assignee: nobody → Peter Stachowski (peterstac)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/131593

Changed in trove:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/131593
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=b2914b7d3fdfa95385748a70745ac6f4b52e1637
Submitter: Jenkins
Branch: master

commit b2914b7d3fdfa95385748a70745ac6f4b52e1637
Author: Peter Stachowski <email address hidden>
Date: Tue Oct 28 03:11:38 2014 -0400

    Deleting failed replication backup can hide error

    If there is a problem with getting the replication snapshot, the backup
    is deleted. If the delete fails (if, for example, the backup is in the
    wrong state) then the original exception is lost (and more importantly,
    not logged).

    Handling is now in place to trap exceptions while deleting a 'bad'
    replication backup. All exceptions are logged and re-thrown as a
    TroveError.

    The duplicated code around the backup delete has also been collapsed
    into one (nested) exception.

    Change-Id: I858df7fd7eeb79dd1d559c4dd4b2851f7d0e0d98
    Closes-Bug: #1386901

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
importance: Undecided → Medium
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.