Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

61167: Removed in-txn exception absorbtion and replaced with a node exists check


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62397 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 15:01:09 +00:00
parent 3f9c22dd32
commit 3aa31d4ba2

View File

@@ -489,19 +489,17 @@ public class NodeArchiveServiceImpl implements NodeArchiveService
public void purgeArchivedNode(final NodeRef archivedNodeRef)
{
RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
RetryingTransactionCallback<Object> deleteCallback = new RetryingTransactionCallback<Object>()
RetryingTransactionCallback<Void> deleteCallback = new RetryingTransactionCallback<Void>()
{
public Object execute() throws Exception
public Void execute() throws Exception
{
try
if (!nodeService.exists(archivedNodeRef))
{
invokeBeforePurgeNode(archivedNodeRef);
nodeService.deleteNode(archivedNodeRef);
}
catch (InvalidNodeRefException e)
{
// ignore
// Node has disappeared
return null;
}
invokeBeforePurgeNode(archivedNodeRef);
nodeService.deleteNode(archivedNodeRef);
return null;
}
};