herd icon indicating copy to clipboard operation
herd copied to clipboard

Perform LFS S3 Delete outside of transaction

Open nateiam opened this issue 7 years ago • 0 comments

As a Herd LFS user I want to minimize the amount of time that LFS operations hold database transactions so I can reduce the possibility that a concurrent user operation will receive an optimistic locking error.

Acceptance Criteria

  • LFS file operation that occurs during clean-up does not hold a database transaction while performing the S3 delete operation
  • Any failure in the S3 delete operation fails does not impact the database transaction that updates BData Status.
    • Note that current logic does not even react to failure of S3 delete operation – the transaction to update BData Status is committed either way. So there is no logical change and no reason to have the transaction around the S3 operation anyway. 

nateiam avatar May 13 '17 20:05 nateiam