Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2778 (closed)

Opened 9 years ago

Closed 9 years ago

Develop hook within `DeleteHandleI` after tx for deleting binary

Reported by: jamoore Owned by: cblackburn
Priority: blocker Milestone: OMERO-Beta4.2.1
Component: Bin-Services Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-09-09 (16)

Description

Some reasonable amount of time should be appropriated to trying to delete the binary data associated with a delete. This can only begin after the transaction is complete. Therefore, there will be no way to rollback the transaction. Instead, we will make some best effort to remove (or truncate) the binary files, and then if it is not successful, return a warning to the user.

Change History (12)

comment:1 Changed 9 years ago by cblackburn

  • Owner set to cblackburn
  • Status changed from new to assigned

comment:2 Changed 9 years ago by cblackburn

(In [8061]) Hooks added which ry to delete files corresponding to deleted rows. See #2778

comment:3 Changed 9 years ago by cblackburn

(In [8063]) Replaced absolute data dir with config value. See #2778

comment:4 Changed 9 years ago by cblackburn

  • Remaining Time changed from 0.5 to 2

comment:5 Changed 9 years ago by cblackburn

(In [8113]) Refactoring. Map of failed deletes created. See #2778

comment:6 Changed 9 years ago by cblackburn

  • Sprint set to 2010-09-09 (16)

comment:7 Changed 9 years ago by jmoore

(In [8122]) Correcting loading of omero.data.dir; failed on non-admin users (See #2778)

comment:8 Changed 9 years ago by cblackburn

(In [8124]) Removed queries folloowing changes in r8123. See #2778

comment:9 Changed 9 years ago by cxallan

  • Priority changed from minor to blocker

comment:10 Changed 9 years ago by cblackburn

  • Remaining Time changed from 2 to 0.5

Windows testing still to do. There is not yet a timeout on attempting deletes. A specific ticket should be opened on this if needed.

comment:11 Changed 9 years ago by cblackburn

(In [8148]) Map of failed file deletes added to Report. Would this be better as null if empty? See #2778

comment:12 Changed 9 years ago by cblackburn

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from assigned to closed

All file deletes in place with tests added (See #2880).

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.83741 sec.)

We're Hiring!