Program: 89235
Project: 89235
Buggy source:
public Object doWork(){
  StringBuilder queryBuffer=new StringBuilder();
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  String query=queryBuffer.toString();
  ResultSet results=searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE,SearchService.LANGUAGE_LUCENE,query);
  final List<NodeRef> resultNodes=results.getNodeRefs();
  results.close();
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str" + resultNodes.size() + "String_Node_Str");
  }
  if (resultNodes.size() != 0) {
    RetryingTransactionCallback<Boolean> txCallbackSendEmail=new RetryingTransactionCallback<Boolean>(){
      public Boolean execute(){
        recordsManagementNotificationHelper.recordsDueForReviewEmailNotification(resultNodes);
        return null;
      }
    }
;
    RetryingTransactionCallback<Boolean> txUpdateNodesCallback=new RetryingTransactionCallback<Boolean>(){
      public Boolean execute(){
        for (        NodeRef node : resultNodes) {
          nodeService.setProperty(node,RecordsManagementModel.PROP_NOTIFICATION_ISSUED,"String_Node_Str");
        }
        return Boolean.TRUE;
      }
    }
;
    retryingTransactionHelper.setMaxRetries(0);
    retryingTransactionHelper.doInTransaction(txCallbackSendEmail);
    retryingTransactionHelper.setMaxRetries(10);
    retryingTransactionHelper.doInTransaction(txUpdateNodesCallback);
  }
  return null;
}

Fixed version (ground truth):
public Object doWork(){
  StringBuilder queryBuffer=new StringBuilder();
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  queryBuffer.append("String_Node_Str");
  String query=queryBuffer.toString();
  ResultSet results=searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE,SearchService.LANGUAGE_LUCENE,query);
  final List<NodeRef> resultNodes=results.getNodeRefs();
  results.close();
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str" + resultNodes.size() + "String_Node_Str");
  }
  if (resultNodes.size() != 0) {
    RetryingTransactionCallback<Void> txCallbackSendEmail=new RetryingTransactionCallback<Void>(){
      public Void execute(){
        recordsManagementNotificationHelper.recordsDueForReviewEmailNotification(resultNodes);
        return null;
      }
    }
;
    RetryingTransactionCallback<Boolean> txUpdateNodesCallback=new RetryingTransactionCallback<Boolean>(){
      public Boolean execute(){
        for (        NodeRef node : resultNodes) {
          nodeService.setProperty(node,RecordsManagementModel.PROP_NOTIFICATION_ISSUED,"String_Node_Str");
        }
        return Boolean.TRUE;
      }
    }
;
    retryingTransactionHelper.setMaxRetries(0);
    retryingTransactionHelper.doInTransaction(txCallbackSendEmail);
    retryingTransactionHelper.setMaxRetries(10);
    retryingTransactionHelper.doInTransaction(txUpdateNodesCallback);
  }
  return null;
}