Project

General

Profile

Actions

Bug #654

closed

Delete operations fail during orchestration

Added by Paul Kelly almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Orchestration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This needs some investigation but I believe that if a delete operation fails then the database transaction COMMITS. This appears to be because the Orchestration#destroy method is not within a transaction and the ROLLBACK is just an ordinary exception.

It may be that this is more or less complicated than that but this what I have seen.

I admit that I cannot see how this is possible, so maybe I am wrong.

Actions #1

Updated by Paul Kelly almost 14 years ago

After some investigation it appears that the structure of the code is such that the destroy teardown is occurring AFTER the commit has been executed. The obvious solution is to perform the rollback operations in an after_delete method as this ensures that we are within the transactional block.

Actions #2

Updated by Paul Kelly almost 14 years ago

  • Status changed from New to Assigned
  • Assignee set to Paul Kelly
Actions #3

Updated by Paul Kelly almost 14 years ago

rebased and tested

Actions #4

Updated by Paul Kelly almost 14 years ago

  • Status changed from Assigned to Ready For Testing
Actions #5

Updated by Ohad Levy almost 14 years ago

  • Target version set to 0.2
Actions #6

Updated by Paul Kelly almost 14 years ago

  • % Done changed from 0 to 100
Actions #7

Updated by Ohad Levy almost 14 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF